[android-components](../../index.md) / [mozilla.components.concept.fetch](../index.md) / [Headers](index.md) / [set](./set.md)

# set

`abstract operator fun set(index: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, header: `[`Header`](../-header/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/fetch/src/main/java/mozilla/components/concept/fetch/Headers.kt#L34)

Sets the [Header](../-header/index.md) at the specified [index](set.md#mozilla.components.concept.fetch.Headers$set(kotlin.Int, mozilla.components.concept.fetch.Header)/index).

