Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Request = RequestF RequestBody Builder
- data RequestF body path = Request {
- requestPath :: path
- requestQueryString :: Seq QueryItem
- requestBody :: Maybe (body, MediaType)
- requestAccept :: Seq MediaType
- requestHeaders :: Seq Header
- requestHttpVersion :: HttpVersion
- requestMethod :: Method
- data RequestBody
- defaultRequest :: Request
- addHeader :: ToHttpApiData a => HeaderName -> a -> Request -> Request
- appendToPath :: Text -> Request -> Request
- appendToQueryString :: Text -> Maybe Text -> Request -> Request
- setRequestBody :: RequestBody -> MediaType -> Request -> Request
- setRequestBodyLBS :: ByteString -> MediaType -> Request -> Request
Documentation
data RequestF body path Source #
Request | |
|
Instances
data RequestBody Source #
The request body. R replica of the http-client
RequestBody
.
Instances
Modifiers
addHeader :: ToHttpApiData a => HeaderName -> a -> Request -> Request Source #
setRequestBody :: RequestBody -> MediaType -> Request -> Request Source #
Set body and media type of the request being constructed.
Since: 0.12
setRequestBodyLBS :: ByteString -> MediaType -> Request -> Request Source #
Set body and media type of the request being constructed.
The body is set to the given bytestring using the RequestBodyLBS
constructor.
Since: 0.12