ktor-server-core / io.ktor.features / ForwardedHeaderSupport

ForwardedHeaderSupport

object ForwardedHeaderSupport : ApplicationFeature<ApplicationCallPipeline, Unit, Unit>

Forwarded header support. See RFC 7239 https://tools.ietf.org/html/rfc7239

Types

ForwardedHeaderValue

data class ForwardedHeaderValue

Parsed forwarded header value. All fields are optional as proxy could provide different fields

Properties

ForwardedParsedKey

val ForwardedParsedKey: AttributeKey<List<ForwardedHeaderValue>>

A key for application call attribute that is used to cache parsed header values

key

val key: AttributeKey<Unit>

Unique key that identifies a feature

Functions

install

fun install(pipeline: ApplicationCallPipeline, configure: Unit.() -> Unit): Unit

Feature installation script