Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
Data/ | H | 22-Oct-2019 | - | 326 | 216 | |
Network/HTTP/ | H | 22-Oct-2019 | - | 4,036 | 2,449 | |
publicsuffixlist/Network/PublicSuffixList/ | H | 22-Oct-2019 | - | 208 | 119 | |
test/ | H | 22-Oct-2019 | - | 99 | 83 | |
test-nonet/ | H | 22-Oct-2019 | - | 769 | 662 | |
ChangeLog.md | H A D | 09-Mar-2020 | 9.8 KiB | 334 | 187 | |
LICENSE | H A D | 22-Oct-2019 | 1.1 KiB | 21 | 16 | |
README.md | H A D | 22-Oct-2019 | 1.2 KiB | 40 | 30 | |
Setup.hs | H A D | 22-Oct-2019 | 46 | 3 | 2 | |
http-client.cabal | H A D | 09-Mar-2020 | 5.2 KiB | 142 | 131 |
README.md
1http-client 2=========== 3 4Full tutorial docs are available at: 5https://github.com/snoyberg/http-client/blob/master/TUTORIAL.md 6 7An HTTP client engine, intended as a base layer for more user-friendly packages. 8 9This codebase has been refactored from [http-conduit](http://www.stackage.org/package/http-conduit). 10 11Note that, if you want to make HTTPS secure connections, you should use 12[http-client-tls](https://www.stackage.org/package/http-client-tls) in addition 13to this library. 14 15Below is a series of cookbook recipes. A number of recipes exist elsewhere, 16including `Network.HTTP.Client` and `Network.HTTP.Conduit`. The goal is to 17expand this list over time. 18 19## Proxy environment variable 20 21Use the following approach to get proxy settings from the `http_proxy` and 22`https_proxy` environment variables. 23 24```haskell 25{-# LANGUAGE OverloadedStrings #-} 26import Network.HTTP.Client 27 28main :: IO () 29main = do 30 let settings = managerSetProxy 31 (proxyEnvironment Nothing) 32 defaultManagerSettings 33 man <- newManager settings 34 let req = "http://httpbin.org" 35 -- Note that the following settings will be completely ignored. 36 { proxy = Just $ Proxy "localhost" 1234 37 } 38 httpLbs req man >>= print 39``` 40