Safe Haskell | Trustworthy |
---|
- data Request = Request {}
- getRequestBodyType :: Request -> Maybe RequestBodyType
- data RequestBodyType
- data Response = Response {}
- 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 RequestBodyTypeSource
Get the request body type (copied from wai-extra
).
Responses
A response sent by the app.
Response | |
|
removeResponseHeader :: Response -> HeaderName -> ResponseSource
Remove a header (if it exists) from the Response
Applications and middleware
type Application = RequestConfig -> DCLabeled Request -> DC ResponseSource
Base Hails type implemented by untrusted applications.
data RequestConfig Source
The settings with which the app will run.
RequestConfig | |
|
type Middleware = Application -> ApplicationSource
Convenience type for middleware components.