ApplicationCallPipeline
open class ApplicationCallPipeline :
Pipeline<Unit, ApplicationCall>
Pipeline configuration for executing ApplicationCall instances
Constructors
ApplicationCallPipeline(developmentMode: Boolean = false) Pipeline configuration for executing ApplicationCall instances |
Properties
val developmentMode: Boolean Indicated if debug mode is enabled. In debug mode users will get more details in the stacktrace. |
|
val receivePipeline: ApplicationReceivePipeline Pipeline for receiving content |
|
val sendPipeline: ApplicationSendPipeline Pipeline for sending content |
Inherited Properties
val attributes: Attributes Provides common place to store pipeline attributes |
|
val isEmpty: Boolean |
|
val items: List<PipelinePhase> Phases of this pipeline |
Inherited Functions
fun addPhase(phase: PipelinePhase): Unit Adds phase to the end of this pipeline |
|
open fun afterIntercepted(): Unit Invoked after an interceptor has been installed |
|
Executes this pipeline in the given context and with the given subject |
|
fun insertPhaseAfter( |
|
fun insertPhaseBefore( |
|
fun intercept( |
|
Merges another pipeline into this pipeline, maintaining relative phases order |
Companion Object Properties
val Call: PipelinePhase Phase for processing a call and sending a response |
|
val Fallback: PipelinePhase Phase for handling unprocessed calls |
|
val Features: PipelinePhase Phase for features. Most features should intercept this phase. |
|
val Monitoring: PipelinePhase Phase for tracing calls, useful for logging, metrics, error handling and so on |
|
val Setup: PipelinePhase Phase for preparing call and it’s attributes for processing |
Extension Properties
val ApplicationCallPipeline.conversionService: ConversionService Lookup for a conversion service. Returns the default one if the feature wasn’t installed |
Extension Functions
Executes this pipeline |
|
fun <TSubject : Any, TContext : Any> Pipeline<*, TContext>.intercept( Intercepts an untyped pipeline when the subject is of the given type |
Inheritors
class Application : ApplicationCallPipeline, CoroutineScope Represents configured and running web application, capable of handling requests. It is also the application coroutine scope that is cancelled immediately at application stop so useful for launching background coroutines. |
|
open class Route : ApplicationCallPipeline Describes a node in a routing tree. |