Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
RequestBodyStreamChunked :: GivesPopper () -> RequestBodyhttp-client Network.HTTP.Client.Internal No documentation available.
WrongRequestBodyStreamSize :: Word64 -> Word64 -> HttpExceptionContenthttp-client Network.HTTP.Client.Internal The request body provided did not match the expected size. Provides the expected and actual size.
-
http-client Network.HTTP.Client.Internal A default request value, a GET request of localhost/:80, with an empty request body. Note that the default checkResponse does nothing.
getModifiedRequestManager :: Manager -> Request -> IO (Manager, Request)http-client Network.HTTP.Client.Internal The used Manager can be overridden (by requestManagerOverride) and the used Request can be modified (through managerModifyRequest). This function allows to retrieve the possibly overridden Manager and the possibly modified Request. (In case the Manager is overridden by requestManagerOverride, the Request is being modified by managerModifyRequest of the new Manager, not the old one.)
getOriginalRequest :: Response a -> Requesthttp-client Network.HTTP.Client.Internal Retrieve the orignal Request from a Response Note that the requestBody is not available and always set to empty.
getRedirectedRequest :: Request -> Request -> ResponseHeaders -> CookieJar -> Int -> Maybe Requesthttp-client Network.HTTP.Client.Internal If a request is a redirection (status code 3xx) this function will create a new request from the old request, the server headers returned with the redirection, and the redirection code itself. This function returns Nothing if the code is not a 3xx, there is no location header included, or if the redirected response couldn't be parsed with parseRequest. If a user of this library wants to know the url chain that results from a specific request, that user has to re-implement the redirect-following logic themselves. An example of that might look like this:
myHttp req man = do (res, redirectRequests) <- (`runStateT` []) $ 'httpRedirect' 9000 (\req' -> do res <- http req'{redirectCount=0} man modify (\rqs -> req' : rqs) return (res, getRedirectedRequest req req' (responseHeaders res) (responseCookieJar res) (W.statusCode (responseStatus res)) ) 'lift' req applyCheckStatus (checkStatus req) res return redirectRequestsinsertCookiesIntoRequest :: Request -> CookieJar -> UTCTime -> (Request, CookieJar)http-client Network.HTTP.Client.Internal This applies the computeCookieString to a given Request
mModifyRequest :: Manager -> Request -> IO Requesthttp-client Network.HTTP.Client.Internal No documentation available.
managerModifyRequest :: ManagerSettings -> Request -> IO Requesthttp-client Network.HTTP.Client.Internal Perform the given modification to a Request before performing it. This function may be called more than once during request processing. see https://github.com/snoyberg/http-client/issues/350 Default: no modification Since 0.4.4
managerModifyRequest :: ManagerSettings -> Request -> IO Requesthttp-client Network.HTTP.Client.Internal Perform the given modification to a Request before performing it. This function may be called more than once during request processing. see https://github.com/snoyberg/http-client/issues/350 Default: no modification Since 0.4.4