Skip to content

Commit

Permalink
Bump http-client deps to 0.5.3.2. Bump http-client-tls to 0.3.3. Remo…
Browse files Browse the repository at this point in the history
…ve exported getConnectionWrapper. Rename checkStatus to checkResponse. Bump wreq version to 0.5.0.0.
  • Loading branch information
Jonathan Fischoff committed Sep 30, 2016
1 parent 9222964 commit 274b3d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions Network/Wreq/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ prepare modify opts url = do
& setQuery opts
& setAuth opts
& setProxy opts
& setCheckStatus opts
& setCheckResponse opts
& setRedirects opts
& Lens.cookieJar .~ cookies opts
signRequest :: Request -> IO Request
Expand Down Expand Up @@ -146,9 +146,9 @@ setProxy :: Options -> Request -> Request
setProxy = maybe id f . proxy
where f (Proxy host port) = addProxy host port

setCheckStatus :: Options -> Request -> Request
setCheckStatus = maybe id f . checkStatus
where f cs = ( & Lens.checkStatus .~ cs)
setCheckResponse :: Options -> Request -> Request
setCheckResponse = maybe id f . checkResponse
where f cs = ( & Lens.checkResponse .~ cs)

prepareGet :: Options -> String -> IO Req
prepareGet opts url = Req (manager opts) <$> prepare return opts url
Expand All @@ -166,7 +166,6 @@ prepareMethod method opts url = Req (manager opts) <$>

preparePayloadMethod :: Postable a => HTTP.Method -> Options -> String -> a
-> IO Req

preparePayloadMethod method opts url payload = Req (manager opts) <$>
prepare (postPayload payload . (Lens.method .~ method)) opts url

Expand Down
3 changes: 1 addition & 2 deletions Network/Wreq/Internal/Lens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ module Network.Wreq.Internal.Lens
, decompress
, redirectCount
, responseTimeout
, checkStatus
, getConnectionWrapper
, checkResponse
, cookieJar
, seshCookies
, seshManager
Expand Down
4 changes: 2 additions & 2 deletions wreq.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ library
exceptions >= 0.5,
ghc-prim,
hashable,
http-client >= 0.4.6,
http-client-tls >= 0.2,
http-client >= 0.5.3.2,
http-client-tls >= 0.3.3,
http-types >= 0.8,
lens >= 4.5,
lens-aeson,
Expand Down

0 comments on commit 274b3d5

Please sign in to comment.