The http-client package

[Tags: library, mit]

Hackage documentation generation is not reliable. For up to date documentation, please see: http://www.stackage.org/package/http-client.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.1, 0.2.1.1, 0.2.2, 0.2.2.1, 0.2.2.2, 0.2.2.3, 0.2.2.4, 0.2.3, 0.2.3.1, 0.3.0, 0.3.0.1, 0.3.0.2, 0.3.1, 0.3.1.1, 0.3.2, 0.3.2.1, 0.3.2.2, 0.3.3, 0.3.3.1, 0.3.3.2, 0.3.4, 0.3.5, 0.3.6, 0.3.6.1, 0.3.7.1, 0.3.7.2, 0.3.8, 0.3.8.1, 0.3.8.2, 0.4.0, 0.4.0.1, 0.4.1, 0.4.2, 0.4.2.1, 0.4.2.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.6.1, 0.4.6.2, 0.4.7, 0.4.7.1, 0.4.7.2, 0.4.8, 0.4.8.1, 0.4.9, 0.4.10, 0.4.11, 0.4.11.1, 0.4.11.2, 0.4.11.3, 0.4.12, 0.4.13, 0.4.14, 0.4.15, 0.4.16, 0.4.17, 0.4.18, 0.4.18.1, 0.4.19, 0.4.20, 0.4.21, 0.4.22, 0.4.22.1, 0.4.23, 0.4.24, 0.4.25, 0.4.26, 0.4.26.1, 0.4.26.2, 0.4.27
Change logChangeLog.md
Dependenciesarray, base (>=4.5 && <5), base64-bytestring (==1.0.*), blaze-builder (>=0.3), bytestring (>=0.9), case-insensitive (>=1.0), containers, cookie, data-default-class, deepseq (>=1.3 && <1.5), exceptions (>=0.4), filepath, ghc-prim, http-types (>=0.8), mime-types, network (>=2.3), network-uri (>=2.6), random, streaming-commons (>=0.1.0.2 && <0.2), text (>=0.11), time (>=1.2), transformers [details]
LicenseMIT
AuthorMichael Snoyman
Maintainermichael@snoyman.com
CategoryNetwork
Home pagehttps://github.com/snoyberg/http-client
UploadedThu Jan 21 08:01:09 UTC 2016 by MichaelSnoyman
DistributionsArch:0.4.27, Debian:0.4.26.2, FreeBSD:0.4.20, LTSHaskell:0.4.27, NixOS:0.4.27, Stackage:0.4.27
Downloads105172 total (556 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2016-01-21 [all 1 reports]

Modules

[Index]

Flags

NameDescriptionDefaultType
network-uriGet Network.URI from the network-uri packageEnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for http-client-0.4.27

http-client

An HTTP client engine, intended as a base layer for more user-friendly packages.

This codebase has been refactored from http-conduit.

Below is a series of cookbook recipes. A number of recipes exist elsewhere, including Network.HTTP.Client and Network.HTTP.Conduit. The goal is to expand this list over time.

Proxy environment variable

Use the following approach to get proxy settings from the http_proxy and https_proxy environment variables.

{-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Client

main :: IO ()
main = do
    let settings = managerSetProxy
            (proxyEnvironment Nothing)
            defaultManagerSettings
    man <- newManager settings
    let req = "http://httpbin.org"
            -- Note that the following settings will be completely ignored.
            { proxy = Just $ Proxy "localhost" 1234
            }
    httpLbs req man >>= print