Package-level declarations
Types
Link copied to clipboard
A hook that is invoked when a call fails with an exception.
Link copied to clipboard
A hook that is invoked as a first step in processing a call. Useful for validating, updating a call based on proxy information, etc.
Link copied to clipboard
A hook that is invoked before routing and most of the plugins. Useful for metrics, logging, etc.
Link copied to clipboard
class MonitoringEvent<Param : Any, Event : EventDefinition<Param>>(event: Event) : Hook<(Param) -> Unit>
A shortcut hook for ApplicationEnvironment.monitor subscription.
Link copied to clipboard
object ReceiveRequestBytes : Hook<(call: ApplicationCall, body: ByteReadChannel) -> ByteReadChannel>
A hook that is invoked when a request is about to be received. It gives control over the raw request body.
Link copied to clipboard
object ResponseBodyReadyForSend : Hook<suspend ResponseBodyReadyForSend.Context.(ApplicationCall, OutgoingContent) -> Unit>
A hook that is invoked when a response body comes through all transformations and is ready to be sent.
Link copied to clipboard
A hook that is invoked when response was successfully sent to a client. Useful for cleaning up opened resources or finishing measurements.