Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
requestVersion :: Request -> HttpVersionhttp-client Network.HTTP.Client.Internal HTTP version to send to server. Default: HTTP 1.1 Since 0.4.3
responseOriginalRequest :: Response body -> Requesthttp-client Network.HTTP.Client.Internal Holds original Request related to this Response (with an empty body). This field is intentionally not exported directly, but made available via getOriginalRequest instead. Since 0.7.8
setRequestCheckStatus :: Request -> Requesthttp-client Network.HTTP.Client.Internal Modify the request so that non-2XX status codes generate a runtime StatusCodeException, by using throwErrorStatusCodes
setRequestIgnoreStatus :: Request -> Requesthttp-client Network.HTTP.Client.Internal Modify the request so that non-2XX status codes do not generate a runtime StatusCodeException.
-
http-client Network.HTTP.Client.MultipartFormData Construct a Part from form name, filepath and a RequestBody
partFileRequestBody "who_calls" "caller.json" $ RequestBodyBS "{\"caller\":\"Jason J Jason\"}"-- empty upload form partFileRequestBody "file" mempty mempty
The Part does not have a content type associated with it. partFileRequestBodyM :: Text -> FilePath -> m RequestBody -> PartM mhttp-client Network.HTTP.Client.MultipartFormData Construct a Part from action returning the RequestBody
partFileRequestBodyM "cat_photo" "haskell-the-cat.jpg" $ do size <- fromInteger <$> withBinaryFile "haskell-the-cat.jpg" ReadMode hFileSize return $ RequestBodySource size $ CB.sourceFile "haskell-the-cat.jpg" $= CL.map fromByteString
The Part does not have a content type associated with it.-
wai Network.Wai Information on the request sent by the client. This abstracts away the details of the underlying implementation.
-
wai Network.Wai The size of the request body. In the case of chunked bodies, the size will not be known.
consumeRequestBodyLazy :: Request -> IO ByteStringwai Network.Wai Synonym for lazyRequestBody. This function name is meant to signal the non-idempotent nature of lazyRequestBody.
consumeRequestBodyStrict :: Request -> IO ByteStringwai Network.Wai Synonym for strictRequestBody. This function name is meant to signal the non-idempotent nature of strictRequestBody.