Proxy package:wreq

Define a HTTP proxy, consisting of a hostname and port number.
A lens onto proxy configuration. Example:
let opts = defaults & proxy ?~ httpProxy "localhost" 8000
getWith opts "http://httpbin.org/get"

Note here the use of the ?~ setter to turn a Proxy into a Maybe Proxy, to make the type of the RHS compatible with the proxy lens.
Host name and port for a proxy to use, if any.
A lens onto the hostname portion of a proxy configuration.
A lens onto the TCP port number of a proxy configuration.
Proxy configuration. Example:
let opts = defaults & proxy ?~ httpProxy "localhost" 8000
getWith opts "http://httpbin.org/get"

Note here the use of the ?~ setter to turn a Proxy into a Maybe Proxy, to make the type of the RHS compatible with the proxy lens.