ResponseHeaders

abstract class ResponseHeaders

Server's response headers

Constructors

Link copied to clipboard
fun ResponseHeaders()

Functions

Link copied to clipboard
fun allValues(): <ERROR CLASS>

Build a Headers instance from response HTTP header values

Link copied to clipboard
fun append(name: String, value: String, safeOnly: Boolean = true)

Append HTTP response header

Link copied to clipboard
operator fun contains(name: String): Boolean

Check if there is response HTTP header with name set

Link copied to clipboard
open operator fun get(name: String): String?

Find first response HTTP header with name or return null

Link copied to clipboard
fun values(name: String): List<String>

Find all response HTTP header values for name