MutableHeaders

Constructors

Link copied to clipboard
constructor()
constructor(headers: Headers)
constructor(headers: Map<String, List<String>>)

Properties

Link copied to clipboard
open override val names: Set<String>

Functions

Link copied to clipboard
fun append(name: String, value: String)

Appends a header value associated with the given name

Link copied to clipboard
open override fun contains(name: String): Boolean
Link copied to clipboard
open operator override fun get(key: String): String?

Gets first value from the list of values associated with the given name, or null if the name is not present

Link copied to clipboard
open operator override fun iterator(): Iterator<Headers.Entry>
Link copied to clipboard
operator fun set(name: String, value: String)

Sets a single value associated with the given name

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

Gets all entries associated with the given name