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. onRequestBodyException :: Request -> SomeException -> IO ()

    http-client Network.HTTP.Client.Internal

    How to deal with exceptions thrown while sending the request. Default: ignore IOExceptions, rethrow all other exceptions. Since: 0.4.6

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

    http-client Network.HTTP.Client.Internal

    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

  3. parseRequest_ :: String -> Request

    http-client Network.HTTP.Client.Internal

    Same as parseRequest, but parse errors cause an impure exception. Mostly useful for static strings which are known to be correctly formatted.

  4. proxyFromRequest :: ProxyOverride

    http-client Network.HTTP.Client.Internal

    Get the proxy settings from the Request itself. Since 0.4.7

  5. requestAction :: IORef (Request -> Manager -> IO (Response BodyReader))

    http-client Network.HTTP.Client.Internal

    No documentation available.

  6. requestBody :: Request -> RequestBody

    http-client Network.HTTP.Client.Internal

    Request body to be sent to the server. Since 0.1.0

  7. requestBuilder :: Request -> Connection -> IO (Maybe (IO ()))

    http-client Network.HTTP.Client.Internal

    No documentation available.

  8. requestFromURI :: MonadThrow m => URI -> m Request

    http-client Network.HTTP.Client.Internal

    Convert a URI into a Request. This can fail if the given URI is not absolute, or if the URI scheme is not "http" or "https". In these cases the function will throw an error via MonadThrow. This function defaults some of the values in Request, such as setting method to GET and requestHeaders to []. A Request created by this function won't cause exceptions on non-2XX response status codes.

  9. requestFromURI_ :: URI -> Request

    http-client Network.HTTP.Client.Internal

    Same as requestFromURI, but if the conversion would fail, throws an impure exception.

  10. requestHeaders :: Request -> RequestHeaders

    http-client Network.HTTP.Client.Internal

    Custom HTTP request headers The Content-Length and Transfer-Encoding headers are set automatically by this module, and shall not be added to requestHeaders. If not provided by the user, Host will automatically be set based on the host and port fields. Moreover, the Accept-Encoding header is set implicitly to gzip for convenience by default. This behaviour can be overridden if needed, by setting the header explicitly to a different value. In order to omit the Accept-Header altogether, set it to the empty string "". If you need an empty Accept-Header (i.e. requesting the identity encoding), set it to a non-empty white-space string, e.g. " ". See RFC 2616 section 14.3 for details about the semantics of the Accept-Header field. If you request a content-encoding not supported by this module, you will have to decode it yourself (see also the decompress field). Note: Multiple header fields with the same field-name will result in multiple header fields being sent and therefore it's the responsibility of the client code to ensure that the rules from RFC 2616 section 4.2 are honoured. Since 0.1.0

Page 163 of many | Previous | Next