ResponseContextImpl

class ResponseContextImpl<TResponse>(val pipeline: RoutingContext, val route: OpenAPIRoute<*>, val responder: Responder) : OpenAPIPipelineResponseContext<TResponse> (source)

Constructors

Link copied to clipboard
constructor(pipeline: RoutingContext, route: OpenAPIRoute<*>, responder: Responder)

Properties

Link copied to clipboard
open override val pipeline: RoutingContext
Link copied to clipboard
open override val responder: Responder
Link copied to clipboard
open override val route: OpenAPIRoute<*>

Functions

Link copied to clipboard
inline suspend fun <TResponse : Any> OpenAPIPipelineResponseContext<TResponse>.respond(response: TResponse, statusCode: HttpStatusCode = HttpStatusCode.OK)
Link copied to clipboard
inline suspend fun <TResponse : Any> OpenAPIPipelineResponseContext<TResponse>.respondWithStatus(statusCode: HttpStatusCode)