Query and update the HTTP response.
An HTTP response.
Basics.Int
An HTTP status code.
addHeader : ( String, String ) -> Response -> Response
Set a response header.
If you set the same response header more than once, the second value will override the first.
setBody : Serverless.Conn.Body.Body -> Response -> Response
Set the response body.
updateBody : (Serverless.Conn.Body.Body -> Serverless.Conn.Body.Body) -> Response -> Response
Updates the response body.
setStatus : Status -> Response -> Response
Set the response HTTP status code.
These functions are typically not needed when building an application. They are used internally by the framework. They may be useful when debugging or writing unit tests.
init : Response
A response with an empty body and invalid status.
encode : Response -> Json.Encode.Value
JSON encode an HTTP response.