~7      !"#$%&'()*+,-./0123456789request method  status code :789789;<=>?@ABCDEFGHIACDFACDFJKLMNO0send the headers as well, necessary for a proxy POPOP QRSTUVWXYZ[\]^_`abQUVWXYZQUUVWXYZ,?Define a HTTP proxy, consisting of a hostname and port number. !The host name of the HTTP proxy. #The port number of the HTTP proxy. When using one of the    /   constructors,  you must ensure  that the Source- can be called multiple times. Usually this  is not a problem. The   will send a chunked request 8 body, note that not all servers support this. Only use    if you know the server you're - sending to supports chunked request bodies. KAll information on how to connect to a host and what should be sent in the  HTTP request. /If you simply wish to download from a URL, see . KThe constructor for this data type is not exposed. Instead, you should use  either the + method to retrieve a default instance, or  to M construct from a URL, and then use the records below to make modifications. H This approach allows http-conduit to add configuration options without # breaking backwards compatibility. c#HTTP request method, eg GET, POST.  Whether to use HTTPS (ie, SSL). .Everything from the host to the query string. Optional HTTP proxy. Optional SOCKS proxy. If True, a chunked and/or gzipped body will not be  decoded. Use with caution. 4Predicate to specify whether gzipped data should be  decompressed on the fly (see   and  !). Default: browserDecompress. EHow many redirects to follow when getting a resource. 0 means follow " no redirects. Default value: 10. GCheck the status code. Note that this will run after all redirects are  performed. Default: return a StatusCodeException on non-2XX responses. defConvert a URL into a . $This defaults some of the values in , such as setting  to  GET and  to []. Since this function uses g+, the return monad can be anything that is  an instance of g , such as h or i. jk 'Always decompress a compressed stream. !:Decompress a compressed stream unless the content-type is 'application/x-tar'. "KAdd a Basic Auth header (with the specified user name and password) to the ' given Request. Ignore error handling: applyBasicAuth user pass $ fromJust $ parseUrl url #JAdd a proxy to the the Request so that the Request when executed will use  the provided proxy. $!Add url-encoded paramters to the . This sets a new ), adds a content-type request header and  changes the  to POST. lresponse headers m( cd !"#$lm(   ccd !"#$lm+nopqrstuConnKey& consists of a hostname, a port and a Bool  specifying whether to use SSL. vwxy%=Keeps track of open connections for keep-alive. May be used # concurrently by multiple threads. z{Nothing' indicates that the manager is closed. |This is a per-ConnKey value. }!Check if a certificate is valid. ~%Cache of validated certificates. The UTCTime gives the expiration / time for the validity of the certificate. The Ascii is the hostname. &Settings for a Manager. Please use the  function and then modify  individual settings. 'CNumber of connections to a single host to keep alive. Default: 10. (CCheck if the server certificate is valid. Only relevant for HTTPS. )-Check certificates using the operating system's certificate checker. DAdd a new element to the list, up to the given maximum number. If we're ; already at the maximum, return the new value as leftover. * Create a %. You must manually call , to shut it down. +Collect and destroy any stale connections. +LCreate a new manager, use it in the provided function, and then release it. GThis function uses the default manager settings. For more control, use  *. ,Close all connections in a %. Afterwards, the  % can be reused if desired. optional socks proxy host port optional socks proxy  Target host  Target port  Proxy host  Proxy port optional SOCKS proxy !This function needs to acquire a ConnInfo- either from the Manager or  via I/O, and register it with the  ResourceT so it is guaranteed to be - either released or returned to the manager. nopqrstuv%&'()*+,noqppqrtsstuvv%&'('()*+, -8A simple representation of the HTTP response created by  lbsConsumer. ./012JIf a request is a redirection (status code 3xx) this function will create J a new request from the old request, the server headers returned with the E redirection, and the redirection code itself. This function returns  ' if the code is not a 3xx, there is no location header included, or if the  redirected response couldn't be parsed with . JIf a user of this library wants to know the url chain that results from a N specific request, that user has to re-implement the redirect-following logic 6 themselves. An example of that might look like this: L myHttp req man = E.catch (C.runResourceT $ http req' man >> return [req']) B (\ (StatusCodeException status headers) -> do P l <- myHttp (fromJust $ nextRequest status headers) man + return $ req' : l) , where req' = req { redirectCount = 0 } ` nextRequest status headers = getRedirectedRequest req' headers $ W.statusCode status 3 Convert a .- that has a  body to one with a lazy   body. #Add some cleanup code to the given . General purpose 0 function, could be included in conduit itself.  Since 1.1.2. -./0123-./01./01234<The most low-level function for initiating an HTTP request. ?The first argument to this function gives a full specification = on the request: the host to connect to, whether to use SSL,  headers, etc. Please see  for full details. The ! second argument specifies which % should be used. This function then returns a .- with a  . The .- contains the status code 0 and headers that were sent back to us, and the  ) contains the body of the request. Note  that this  allows you to have fully = interleaved IO actions during your HTTP download, making it ? possible to download very large responses in constant memory. , You may also directly connect the returned   into a $, perhaps a file or another socket. INote: Unlike previous versions, this function will perform redirects, as  specified by the  setting. Get a .-! without any redirect following. 5Download the specified , returning the results as a .-.  This is a simplified version of 4& for the common case where you simply N want the response data as a simple datatype. If you want more power, such as > interleaved actions on the response body during download, you'll need to use  4( directly. This function is defined as:   httpLbs = 3 . 4Even though the .-" contains a lazy bytestring, this  function does not utilize lazy I/O, and therefore the entire @ response body will live in memory. If you want constant memory  usage, you'll need to use conduit packages's   returned by 4. INote: Unlike previous versions, this function will perform redirects, as  specified by the  setting. 69Download the specified URL, following any redirects, and  return the response body. This function will  an  for any ? response with a non-2xx status code (besides 3xx redirects up & to a limit of 10 redirects). It uses  to parse the ( input. This function essentially wraps httpLbsRedirect. >Note: Even though this function returns a lazy bytestring, it  does not utilize lazy I/%O, and therefore the entire response > body will live in memory. If you want constant memory usage,  you'll need to use the conduit package and 4 or   httpRedirect directly. 7  !"#$%&'()*+,-./0123456G654  -./01%*,+&'('()"#32 !$456    !"#$%&'()*+,-./01234567789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefgefhefiefjefkeflefmefnopqrstuvwxyz{|}~/0xyChttp-conduit-1.2.1Network.HTTP.ConduitNetwork.HTTP.Conduit.UtilNetwork.HTTP.Conduit.ParserNetwork.HTTP.Conduit.ChunkNetwork.HTTP.Conduit.ConnInfoNetwork.HTTP.Conduit.RequestNetwork.HTTP.Conduit.ManagerNetwork.HTTP.Conduit.Responsedata-default-0.3.0 Data.Defaultdef HttpExceptionHttpParserExceptionTooManyRedirectsInvalidUrlExceptionStatusCodeExceptionProxy proxyHost proxyPort RequestBodyRequestBodySourceChunkedRequestBodySourceRequestBodyBuilder RequestBodyBSRequestBodyLBSRequestmethodsecurehostportpath queryStringrequestHeaders requestBodyproxy socksProxyrawBody decompress redirectCount checkStatusparseUrlalwaysDecompressbrowserDecompressapplyBasicAuthaddProxyurlEncodedBodyManagerManagerSettingsmanagerConnCountmanagerCheckCertsdefaultCheckCerts newManager withManager closeManagerResponse statusCoderesponseHeaders responseBodygetRedirectedRequest lbsResponsehttphttpLbs simpleHttp<>readDec hasNoBodybytestring-0.9.2.0Data.ByteStringhGetSomeStatusHeader parseHeadernotNewlineColonisSpace notNewlinenewline parseHeaders sinkHeadersparserHeadersFromByteString parseStatusparseChunkHeaderattribshexshexCStateComplete NeedNewlineIsolate NeedHeaderchunkedConduitchunkItConnInfoconnRead connWrite connCloseconnSink connSource socketConn sslClientConn getSocket tls-0.8.5Network.TLS.ContextCertificateRejectExpiredCertificateRejectRevokedCertificateRejectUnknownCACertificateRejectOtherTLSCertificateRejectReasonCertificateUsageAcceptCertificateUsageRejectTLSCertificateUsage ContentTypeencodeUrlCharPI encodeUrlChar failure-0.2.0Control.FailureFailureghc-prim GHC.TypesIObase Data.MaybeMaybe parseUrl1 parseUrl2 needsGunziprequestBuilder ConnRelease ConnReuse DontReuseReuse ManagedConnReusedFreshConnKey NonEmptyListConsOnemConns mMaxConns mCheckCerts mCertCache X509Encoded takeSocket putSocket addToListreapneToList neFromList safeConnClose nonEmptyMapM_ getSocketConn socketDesc getSslConngetSslProxyConngetManagedConngetConn checkCerts connectionToNothing conduit-0.2.0Data.Conduit.Types.SourceSourceData.ByteString.Lazy.Internal ByteString getResponse addCleanup$fFunctorResponseData.Conduit.Types.SinkSinkhttpRawlifted-base-0.1.0.3Control.Exception.LiftedthrowIO