PipelineContext
Represents running execution of a pipeline
Properties
abstract val context: TContext Object representing context in which pipeline executes |
|
abstract val subject: TSubject Subject of this pipeline execution that goes along the pipeline |
Functions
abstract fun finish(): Unit Finishes current pipeline execution |
|
abstract suspend fun proceed(): TSubject Continues execution of the pipeline with the same subject |
|
Continues execution of the pipeline with the given subject |
Extension Properties
val PipelineContext<*, ApplicationCall>.application: Application Current application for the context |
|
val PipelineContext<*, ApplicationCall>.call: ApplicationCall Current call for the context |
|
val PipelineContext<Unit, ApplicationCall>.locations: Locations Gets the Application.locations feature |
Extension Functions
fun CoroutineScope.decodeChunked( Start a chunked stream decoder coroutine |
|
fun <TEngine : ApplicationEngine, TConfiguration : Configuration> CoroutineScope.embeddedServer( Creates an embedded server with the given factory, listening on host:port |
|
fun PipelineContext<Unit, ApplicationCall>.href( Renders link to a location using current installed locations service |
|
fun CoroutineScope.httpServer( Start an http server with settings invoking handler for every request |
|
suspend fun PipelineContext<Unit, ApplicationCall>.oauth( Install both OAuth1a and OAuth2 authentication helpers that do redirect to OAuth server authorization page and handle corresponding callbacks |
|
suspend fun PipelineContext<Unit, ApplicationCall>.oauthHandleCallback( Handle OAuth callback |
|
suspend fun PipelineContext<Unit, ApplicationCall>.oauthRespondRedirect( Respond OAuth redirect |
|
fun CoroutineScope.parseMultipart( fun CoroutineScope.parseMultipart( fun CoroutineScope.parseMultipart( Starts a multipart parser coroutine producing multipart events |
|
fun CoroutineScope.pinger( Launch pinger coroutine on CoroutineScope that is sending ping every specified period to outgoing channel, waiting for and verifying client’s pong frames. It is also handling timeout and sending timeout close frame fun CoroutineScope.pinger( Launch pinger coroutine on CoroutineScope that is sending ping every specified periodMillis to outgoing channel, waiting for and verifying client’s pong frames. It is also handling timeoutMillis and sending timeout close frame |
|
fun CoroutineScope.ponger( Launch a ponger actor job on the CoroutineScope sending pongs to outgoing channel. It is acting for every client’s ping frame and replying with corresponding pong |
|
fun CoroutineScope.startConnectionPipeline( Start connection HTTP pipeline invoking handler for every request. Note that handler could be invoked multiple times concurrently due to HTTP pipeline nature |
|
fun PipelineContext<Any, ApplicationCall>.transformDefaultContent( Default outgoing content transformation |
|
fun CoroutineScope.writeMultipleRanges( Start multirange response writer coroutine |