Safe Haskell | Trustworthy |
---|---|
Language | Haskell98 |
- data Request = Request {}
- getRequestBodyType :: Request -> Maybe RequestBodyType
- data RequestBodyType :: *
- addRequestHeader :: Request -> Header -> Request
- removeRequestHeader :: Request -> HeaderName -> Request
- data Response = Response {}
- module Network.HTTP.Types
- addResponseHeader :: Response -> Header -> Response
- removeResponseHeader :: Response -> HeaderName -> Response
- type Application = RequestConfig -> DCLabeled Request -> DC Response
- data RequestConfig = RequestConfig {}
- type Middleware = Application -> Application
Requests
A request sent by the end-user.
Request | |
|
getRequestBodyType :: Request -> Maybe RequestBodyType Source
Get the request body type (copied from wai-extra
).
data RequestBodyType :: *
removeRequestHeader :: Request -> HeaderName -> Request Source
Remove a header (if it exists) from the Request
Responses
A response sent by the app.
Response | |
|
module Network.HTTP.Types
removeResponseHeader :: Response -> HeaderName -> Response Source
Remove a header (if it exists) from the Response
Applications and middleware
type Application = RequestConfig -> DCLabeled Request -> DC Response Source
Base Hails type implemented by untrusted applications.
data RequestConfig Source
The settings with which the app will run.
RequestConfig | |
|
type Middleware = Application -> Application Source
Convenience type for middleware components.