# UrlResponseInfo.HeaderBlock


```
abstract class UrlResponseInfo.HeaderBlock
```

<br />

*** ** * ** ***

Unmodifiable container of response headers or trailers.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlResponseInfo.HeaderBlock#HeaderBlock()()` |

| ### Public functions |
|---|---|
| `abstract (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/-mutable-entry/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/-entry/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!>!` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlResponseInfo.HeaderBlock#getAsList()()` Returns an unmodifiable list of the response header field and value pairs. |
| `abstract (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!>!` | `https://developer.android.com/develop/connectivity/cronet/reference/kotlin/org/chromium/net/UrlResponseInfo.HeaderBlock#getAsMap()()` Returns an unmodifiable map from response-header field names to lists of values. |

## Public constructors

### HeaderBlock

```
HeaderBlock()
```

## Public functions

### getAsList

```
abstract fun getAsList(): (Mutable)List<(Mutable)Map.Entry<String!, String!>!>!
```

Returns an unmodifiable list of the response header field and value pairs. The headers are in the same order they are received over the wire.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/-mutable-entry/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/-entry/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!>!` | an unmodifiable list of response header field and value pairs |

### getAsMap

```
abstract fun getAsMap(): (Mutable)Map<String!, (Mutable)List<String!>!>!
```

Returns an unmodifiable map from response-header field names to lists of values. Each list of values for a single header field is in the same order they were received over the wire.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!>!>!` | an unmodifiable map from response-header field names to lists of values |