KtorServerHeaderScope

interface KtorServerHeaderScope<T : Any> : KtorServerScope<T>

A Ktor server scope that only reads headers.

Functions

Link copied to clipboard
open override fun getData(call: ApplicationCall): T?

Get the scope's data. Will throw an error if it returns null but the scope is non-optional

Link copied to clipboard
abstract fun getValue(headers: Headers): T?

Sources

Link copied to clipboard