ResponseHeaders

abstract class ResponseHeaders

Server’s response headers

Constructors

<init>

ResponseHeaders()

Server’s response headers

Functions

allValues

fun allValues(): Headers

*

append

fun append(
    name: String,
    value: String,
    safeOnly: Boolean = true
): Unit

Append HTTP response header

contains

operator fun contains(name: String): Boolean

Check if there is response HTTP header with name set

engineAppendHeader

abstract fun engineAppendHeader(
    name: String,
    value: String
): Unit

Engine’s header appending implementation

get

open operator fun get(name: String): String?

Find first response HTTP header with name or return null

getEngineHeaderNames

abstract fun getEngineHeaderNames(): List<String>

Engine’s response header names extractor

getEngineHeaderValues

abstract fun getEngineHeaderValues(
    name: String
): List<String>

Engine’s response header values extractor

values

fun values(name: String): List<String>

Find all response HTTP header values for name