put

open override fun put(key: String, value: String): String?

Associates the specified value with the specified key in this header.

Return

The previous value associated with the key, or null if there was no mapping

Parameters

key

The key with which the specified value is to be associated

value

The value to be associated with the specified key

Throws

if the header is read-only