ApplicationCall
The provides access to two main properties ApplicationRequest
and .As their names indicate, they correspond to the incoming request and outgoing response. In addition to these,it also provides an ApplicationEnvironment
, and some useful functions to help respond to client requests.Given that pipelines can be executed asynchronously, also represents the logical executioncontext with Attributes
to pass data between various parts of the pipeline.
The code above installs an interceptor into the Call
phase of an processing and responds with plain textwhen the request is asking for a root page.
Most functions available on ApplicationCall
(such as respondText
above) are functions, indicating that they can potentially execute asynchronously.