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.

  1. RequestBodyLBS :: ByteString -> RequestBody

    http-conduit Network.HTTP.Conduit

    No documentation available.

  2. RequestBodyStream :: Int64 -> GivesPopper () -> RequestBody

    http-conduit Network.HTTP.Conduit

    No documentation available.

  3. RequestBodyStreamChunked :: GivesPopper () -> RequestBody

    http-conduit Network.HTTP.Conduit

    No documentation available.

  4. WrongRequestBodyStreamSize :: Word64 -> Word64 -> HttpExceptionContent

    http-conduit Network.HTTP.Conduit

    The request body provided did not match the expected size. Provides the expected and actual size.

  5. defaultRequest :: Request

    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.

  6. getRedirectedRequest :: Request -> Request -> ResponseHeaders -> CookieJar -> Int -> Maybe Request

    http-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 redirectRequests
    

  7. parseRequest :: MonadThrow m => String -> m Request

    http-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 parseUrlThrow

  8. parseRequest_ :: String -> Request

    http-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.

  9. requestBody :: Request -> RequestBody

    http-conduit Network.HTTP.Conduit

    Request body to be sent to the server. Since 0.1.0

  10. requestBodySource :: Int64 -> ConduitM () ByteString (ResourceT IO) () -> RequestBody

    http-conduit Network.HTTP.Conduit

    No documentation available.

Page 177 of many | Previous | Next