Pedestal

Response Map

Description

The response map is attached to the Context Map by any interceptor in the interceptor chain. The response map describes the outgoing HTTP response. If no response map is attached to the context by the time processing is done, Pedestal generates a 404 response.

Key Always Present? Type Description

:status

Y

integer

The HTTP status code

:headers

N

map of String → String

Response headers sent to the client. Header names are all converted to lower case.

:body

N

String, ISeq, File, InputStream

The body of the response sent to the client.