android-components / mozilla.components.concept.fetch / MutableHeaders / set

set

fun set(index: Int, header: Header): Unit (source)

Overrides Headers.set

Sets the Header at the specified index.

fun set(name: String, value: String): MutableHeaders (source)

Set the only occurrence of the header; potentially overriding an already existing header.