ServerRequestScope

class ServerRequestScope : CoroutineScope

Represents a request scope.

Functions

Link copied to clipboard
fun withContext(coroutineContext: CoroutineContext): ServerRequestScope

Creates another request scope with same parameters except coroutine context

Properties

Link copied to clipboard
open override val coroutineContext: CoroutineContext
Link copied to clipboard
val input: ByteReadChannel

channel connected to request body bytes stream

Link copied to clipboard
val localAddress: SocketAddress?

on which the client was accepted (if known)

Link copied to clipboard
val output: ByteWriteChannel

channel connected to response body

Link copied to clipboard
val remoteAddress: SocketAddress?

of the client (if known)

Link copied to clipboard
val upgraded: CompletableDeferred<Boolean>?

deferred should be completed on upgrade request