Pipeline
Represents an execution pipeline for asynchronous extensible computations
Constructors
Pipeline( Pipeline(vararg phases: PipelinePhase) Represents an execution pipeline for asynchronous extensible computations |
Properties
val attributes: Attributes Provides common place to store pipeline attributes |
|
val isEmpty: Boolean |
|
val items: List<PipelinePhase> Phases of this pipeline |
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 |
Extension Functions
Executes this pipeline |
|
fun <A : Pipeline<*, ApplicationCall>, B : Any, F : Any> A.feature( Gets feature instance for this pipeline, or fails with MissingApplicationFeatureException if the feature is not installed |
|
fun <A : Pipeline<*, ApplicationCall>, B : Any, F : Any> A.featureOrNull( Returns feature instance for this pipeline, or null if feature is not installed |
|
fun <P : Pipeline<*, ApplicationCall>, B : Any, F : Any> P.install( Installs feature into this pipeline, if it is not yet installed |
|
fun <TSubject : Any, TContext : Any> Pipeline<*, TContext>.intercept( Intercepts an untyped pipeline when the subject is of the given type |
|
fun <A : Pipeline<*, ApplicationCall>, B : Any, F : Any> A.uninstall( Uninstalls feature from the pipeline |
|
fun <A : Pipeline<*, ApplicationCall>> A.uninstallAllFeatures(): Unit Uninstalls all features from the pipeline |
|
fun <A : Pipeline<*, ApplicationCall>, F : Any> A.uninstallFeature( Uninstalls feature specified by key from the pipeline |
Inheritors
open class ApplicationCallPipeline : Pipeline configuration for executing ApplicationCall instances |
|
open class ApplicationReceivePipeline : Pipeline for processing incoming content |
|
open class ApplicationSendPipeline : Server response send pipeline |
|
class AuthenticationPipeline : Represents authentication Pipeline for checking and requesting authentication |
|
class EnginePipeline : Pipeline<Unit, ApplicationCall> Application engine pipeline. One usually don’t need to install interceptors here unless your are writing your own engine implementation |
|
class HttpReceivePipeline : HttpClient Pipeline used for receiving HttpResponse without any processing. |
|
class HttpRequestPipeline : Pipeline<Any, HttpRequestBuilder> HttpClient Pipeline used for executing HttpRequest. |
|
class HttpResponsePipeline : HttpClient Pipeline used for executing HttpResponse. |
|
class HttpSendPipeline : Pipeline<Any, HttpRequestBuilder> HttpClient Pipeline used for sending HttpRequest to remote server. |