header

open override fun header(name: String): String?

Gets a specific header value by name.

Retrieves the value of a header by its name. Header names are case-insensitive per the HTTP specification. If the header has multiple values, this returns the first one.

Return

The header value, or null if the header is not present.

Parameters

name

The header name (case-insensitive).