ApplicationResponse
Represents server's response
Functions
Link copied to clipboard
Produces HTTP/2 push from server to client or sets HTTP/1.x hint header or does nothing. Exact behaviour is up to engine implementation.
Link copied to clipboard
Currently set status code for this response, or null if none was set
Set status for this response
Properties
Link copied to clipboard
ApplicationCall instance this ApplicationResponse is attached to
Link copied to clipboard
Link copied to clipboard
Inheritors
Extensions
Link copied to clipboard
Append response Cache-Control
HTTP header value
Link copied to clipboard
fun ApplicationResponse.contentRange(range: LongRange?, fullLength: Long? = null, unit: RangeUnits)
Content copied to clipboard
fun ApplicationResponse.contentRange(range: LongRange?, fullLength: Long? = null, unit: String = RangeUnits.Bytes.unitToken)
Content copied to clipboard
Append response Content-Range
header with specified range and fullLength
Link copied to clipboard
Append response E-Tag
HTTP header value
Link copied to clipboard
Append response Expires
HTTP header value
Link copied to clipboard
Append response Last-Modified
HTTP header value from dateTime
Link copied to clipboard
Append Link
header to HTTP response
Link copied to clipboard
Type of the response object that was passed in respond function. Can be useful for custom serializations.