BeforeResponseTransform

class BeforeResponseTransform<T : Any>(clazz: KClass<T>) : Hook<suspend (call: ApplicationCall, body: T) -> Any>

A hook that is invoked before Transform phase. Useful for some plugins which used for templates as views within application.

Constructors

Link copied to clipboard
constructor(clazz: KClass<T>)

Functions

Link copied to clipboard
open override fun install(pipeline: ApplicationCallPipeline, handler: suspend (call: ApplicationCall, body: T) -> Any)

Specifies how to install a hook in the pipeline.