A server's response. To learn how to send responses inside route handlers, see Sending responses.
Produces HTTP/2 push from a server to a client or sets an HTTP/1.x hint header or does nothing. Exact behaviour is up to engine implementation.
abstract fun status(): <ERROR CLASS>?
Returns a response status code or
null if a status code is not set.
abstract fun status(
value: <ERROR CLASS>)
Specifies a status code for a response.
Provides access to cookies for this response.
Provides access to headers for the current response.
Indicates that this response is already committed and no further changes are allowed.
A pipeline for sending content.
Cache-Control header with the specified value to a response.
Content-Range header with the specified range and fullLength to a response.
E-Tag header with the specified value to a response.
Expires HTTP header value
Appends a header with the specified name and value to a response.
Append HTTP response header with temporal date (date, time and so on)
Last-Modified HTTP header value from dateTime
Link header to HTTP response
Link header to HTTP response with specified uri and rel
A type of response object that is passed in the respond function. Can be useful for custom serializations.