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.
setRequestBearerAuth :: ByteString -> Request -> Requesthttp-conduit Network.HTTP.Simple Set bearer auth with the given token
setRequestBody :: RequestBody -> Request -> Requesthttp-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.
setRequestBodyFile :: FilePath -> Request -> Requesthttp-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.
setRequestBodyJSON :: ToJSON a => a -> Request -> Requesthttp-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
setRequestBodyLBS :: ByteString -> Request -> Requesthttp-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.
setRequestBodySource :: Int64 -> ConduitM () ByteString IO () -> Request -> Requesthttp-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.
setRequestBodyURLEncoded :: [(ByteString, ByteString)] -> Request -> Requesthttp-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
setRequestCheckStatus :: Request -> Requesthttp-conduit Network.HTTP.Simple Modify the request so that non-2XX status codes generate a runtime StatusCodeException, by using throwErrorStatusCodes
setRequestHeader :: HeaderName -> [ByteString] -> Request -> Requesthttp-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.
setRequestHeaders :: RequestHeaders -> Request -> Requesthttp-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.