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.
RequestBodyLBS :: ByteString -> RequestBodyhttp-conduit Network.HTTP.Conduit No documentation available.
RequestBodyStream :: Int64 -> GivesPopper () -> RequestBodyhttp-conduit Network.HTTP.Conduit No documentation available.
RequestBodyStreamChunked :: GivesPopper () -> RequestBodyhttp-conduit Network.HTTP.Conduit No documentation available.
WrongRequestBodyStreamSize :: Word64 -> Word64 -> HttpExceptionContenthttp-conduit Network.HTTP.Conduit The request body provided did not match the expected size. Provides the expected and actual size.
-
http-conduit Network.HTTP.Conduit A default request value, a GET request of localhost/:80, with an empty request body. Note that the default checkResponse does nothing.
getRedirectedRequest :: Request -> Request -> ResponseHeaders -> CookieJar -> Int -> Maybe Requesthttp-conduit Network.HTTP.Conduit 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 redirectRequestsparseRequest :: MonadThrow m => String -> m Requesthttp-conduit Network.HTTP.Conduit Convert a URL into a Request. This function defaults some of the values in Request, such as setting method to GET and requestHeaders to []. Since this function uses MonadThrow, the return monad can be anything that is an instance of MonadThrow, such as IO or Maybe. You can place the request method at the beginning of the URL separated by a space, e.g.:
parseRequest "POST http://httpbin.org/post"
Note that the request method must be provided as all capital letters. A Request created by this function won't cause exceptions on non-2XX response status codes. To create a request which throws on non-2XX status codes, see parseUrlThrowparseRequest_ :: String -> Requesthttp-conduit Network.HTTP.Conduit Same as parseRequest, but parse errors cause an impure exception. Mostly useful for static strings which are known to be correctly formatted.
requestBody :: Request -> RequestBodyhttp-conduit Network.HTTP.Conduit Request body to be sent to the server. Since 0.1.0
requestBodySource :: Int64 -> ConduitM () ByteString (ResourceT IO) () -> RequestBodyhttp-conduit Network.HTTP.Conduit No documentation available.