wreq 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+10/−7 lines, 3 filesdep ~attoparsec
Dependency ranges changed: attoparsec
Files
- Network/Wreq.hs +4/−0
- wreq.cabal +2/−2
- www/tutorial.md +4/−5
Network/Wreq.hs view
@@ -451,6 +451,10 @@ --let opts = 'defaults' '&' 'Lens.proxy' '.~' 'httpProxy' \"localhost\" 8000 --'getWith' opts \"http:\/\/httpbin.org\/get\" -- @+--+-- (You may wonder why this function returns a 'Maybe Proxy'. This+-- allows it to be easily used on the right hand side of an operation,+-- as above, without its result needing to be wrapped in 'Just'.) httpProxy :: S.ByteString -> Int -> Maybe Proxy httpProxy host port = Just (Proxy host port)
wreq.cabal view
@@ -1,5 +1,5 @@ name: wreq-version: 0.1.0.0+version: 0.1.0.1 synopsis: An easy-to-use HTTP client library. description: .@@ -76,7 +76,7 @@ Paths_wreq build-depends: aeson >= 0.7.0.3,- attoparsec,+ attoparsec >= 0.11.1.0, base >= 4.5 && < 5, bytestring >= 0.9, exceptions >= 0.5,
www/tutorial.md view
@@ -392,10 +392,9 @@ ~~~~ Both `partFile` and `partFileSource` will set the filename of a part-to whatever name they are given (including any leading path components-such as `/tmp/confidential`), and guess its content-type based on the-file name extension. Here's an example of how we can upload a file-without revealing its name.+to whatever name they are given, and guess its content-type based on+the file name extension. Here's an example of how we can upload a+file without revealing its name. ~~~~ {.haskell} ghci> partFile "label" "foo.hs" & partFileName .~ Nothing@@ -405,7 +404,7 @@ # Cookies -To see how easily we can work with cookies, let's can ask the+To see how easily we can work with cookies, let's ask the ever-valuable httpbin.org to set a cookie in a response. ~~~~ {.haskell}