packages feed

wai-middleware-hmac-client 0.1.0.0 → 0.1.0.1

raw patch · 2 files changed

+43/−13 lines, 2 filesdep +wai-middleware-hmac-clientdep ~basedep ~bytestringnew-component:exe:examplePVP ok

version bump matches the API change (PVP)

Dependencies added: wai-middleware-hmac-client

Dependency ranges changed: base, bytestring

API changes (from Hackage documentation)

Files

+ Example.hs view
@@ -0,0 +1,18 @@+++{-# LANGUAGE OverloadedStrings #-}+++import qualified Network.HTTP.Client                    as H+import           Network.Wai.Middleware.HmacAuth.Client++++main :: IO ()+main = do+    request <- H.parseUrl "http://localhost:3000/somewhere"+                 >>= applyHmacAuth defaultHmacAuthSettings "key" "secret"++    H.withManager H.defaultManagerSettings $ \manager -> do+        response <- H.httpLbs request manager+        print $ H.responseBody response
wai-middleware-hmac-client.cabal view
@@ -1,6 +1,6 @@  name:                wai-middleware-hmac-client-version:             0.1.0.0+version:             0.1.0.1 license:             BSD3 license-file:        LICENSE author:              Christopher Reichert@@ -9,19 +9,17 @@ category:            Web build-type:          Simple cabal-version:       >=1.10-homepage:            https://github.com/creichert/wai-middleware-hmac-synopsis:            Wai HMAC Authentication Middleware Client+synopsis:            WAI HMAC Authentication Middleware Client description:-   .-   Ready to use client module for wai-middleware-hmac. This module is-   built on http-client but is in the Wai namespace since the protocol-   is somewhat specific. Although this implementation does follow the-   RFC as closely as possible as well as Amazon AWS's implementation.-   Howeber, since nothing is formally specified these modules are-   specifically built for each other Because of this, we also try to-   maintain a slim dependency profile.  Because of the compatibility-   with http-client you can still build into a streaming module if-   needed+  Ready to use client module for+  <<https://hackage.haskell.org/package/wai-middleware-hmac wai-middleware-hmac>>.+  .+  Since no formal specification for HMAC authentication exists, this+  module is specifically built for+  <<https://hackage.haskell.org/package/wai-middleware-hmac wai-middleware-hmac>>.+   This module is built on @http-client@ but is+  in the @Network.Wai@ namespace since the protocol is mostly specific+  to the middleware.   source-repository head@@ -46,3 +44,17 @@                      , time                      , old-locale                      , transformers++++executable example+  buildable: False+  default-language: Haskell2010+  ghc-options:      -Wall -Werror -threaded+  main-is:          Example.hs+  hs-source-dirs:   ""+  build-depends:    base+                  , bytestring+                  , transformers+                  , http-client+                  , wai-middleware-hmac-client