RoutingApplicationResponse

An application response handled by Routing.

Constructors

Link copied to clipboard
fun RoutingApplicationResponse(call: RoutingApplicationCall, pipeline: ApplicationSendPipeline, response: ApplicationResponse)

Functions

Link copied to clipboard
open override fun push(builder: ResponsePushBuilder)

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.

Link copied to clipboard
open override fun status(): <ERROR CLASS>?

Returns a response status code or null if a status code is not set.

open override fun status(value: <ERROR CLASS>)

Specifies a status code for a response.

Properties

Link copied to clipboard
open override val call: RoutingApplicationCall

An ApplicationCall instance this ApplicationResponse is attached to.

Link copied to clipboard
open override val cookies: ResponseCookies

Provides access to cookies for this response.

Link copied to clipboard
open override val headers: ResponseHeaders

Provides access to headers for the current response.

Link copied to clipboard
open override val isCommitted: Boolean

Indicates that this response is already committed and no further changes are allowed.

Link copied to clipboard
open override val pipeline: ApplicationSendPipeline

A pipeline for sending content.