Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setRequestBearerAuth :: ByteString -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set bearer auth with the given token

  2. setRequestBody :: RequestBody -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body to the given RequestBody. You may want to consider using one of the convenience functions in the modules, e.g. requestBodyJSON. Note: This will not modify the request method. For that, please use requestMethod. You likely don't want the default of GET.

  3. setRequestBodyFile :: FilePath -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body as a file Note: This will not modify the request method. For that, please use requestMethod. You likely don't want the default of GET.

  4. setRequestBodyJSON :: ToJSON a => a -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body as a JSON value Note: This will not modify the request method. For that, please use requestMethod. You likely don't want the default of GET. This also sets the Content-Type to application/json; charset=utf-8 NOTE: Depends on the aeson cabal flag being enabled

  5. setRequestBodyLBS :: ByteString -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body as a lazy ByteString Note: This will not modify the request method. For that, please use requestMethod. You likely don't want the default of GET.

  6. setRequestBodySource :: Int64 -> ConduitM () ByteString IO () -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body as a Source Note: This will not modify the request method. For that, please use requestMethod. You likely don't want the default of GET.

  7. setRequestBodyURLEncoded :: [(ByteString, ByteString)] -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request body as URL encoded data Note: This will change the request method to POST and set the content-type to application/x-www-form-urlencoded

  8. setRequestCheckStatus :: Request -> Request

    http-conduit Network.HTTP.Simple

    Modify the request so that non-2XX status codes generate a runtime StatusCodeException, by using throwErrorStatusCodes

  9. setRequestHeader :: HeaderName -> [ByteString] -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the given request header to the given list of values. Removes any previously set header values with the same name.

  10. setRequestHeaders :: RequestHeaders -> Request -> Request

    http-conduit Network.HTTP.Simple

    Set the request headers, wiping out all previously set headers. This means if you use setRequestHeaders to set some headers and also use one of the other setters that modifies the content-type header (such as setRequestBodyJSON), be sure that setRequestHeaders is evaluated first.

Page 159 of many | Previous | Next