# NavigationRedirectParameters

Artifact: [androidx.webkit:webkit](https://developer.android.com/jetpack/androidx/releases/webkit) [View Source](https://cs.android.com/search?q=file:androidx/webkit/NavigationRedirectParameters.java+class:androidx.webkit.NavigationRedirectParameters) Added in [1.19.0-alpha01](https://developer.android.com/jetpack/androidx/releases/webkit#1.19.0-alpha01)

*** ** * ** ***


```
class NavigationRedirectParameters
```

<br />

*** ** * ** ***

A class which exposes response headers for `https://developer.android.com/reference/kotlin/androidx/webkit/NavigationListener#onNavigationRedirected(androidx.webkit.NavigationState,androidx.webkit.NavigationRedirectParameters)`.

## Summary

| ### Public functions |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresFeature(name = https://developer.android.com/reference/kotlin/androidx/webkit/WebViewFeature.NAVIGATION_GET_RESPONSE_HEADERS, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported") https://developer.android.com/reference/kotlin/androidx/webkit/NavigationRedirectParameters#getResponseHeaders()()` Returns the HTTP response headers of this redirect response (for example `Location`). |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresFeature(name = https://developer.android.com/reference/kotlin/androidx/webkit/WebViewFeature.NAVIGATION_GET_RESPONSE_HEADERS, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported") https://developer.android.com/reference/kotlin/androidx/webkit/NavigationRedirectParameters#getStatusCode()()` Returns the status code received by the navigation for the current redirect callback. |

## Public functions

### getResponseHeaders

Added in [1.19.0-alpha01](https://developer.android.com/jetpack/androidx/releases/webkit#1.19.0-alpha01)

```
@RequiresFeature(name = WebViewFeature.NAVIGATION_GET_RESPONSE_HEADERS, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
fun getResponseHeaders(): (Mutable)Map<String!, String!>
```

Returns the HTTP response headers of this redirect response (for example `Location`).

The `Set-Cookie` header is never included.

| Returns |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>` | An unmodifiable `https://developer.android.com/reference/java/util/Map.html` from header name to header value. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/UnsupportedOperationException.html` | if the `https://developer.android.com/reference/kotlin/androidx/webkit/WebViewFeature#NAVIGATION_GET_RESPONSE_HEADERS()` feature is not supported. |

### getStatusCode

Added in [1.19.0-alpha01](https://developer.android.com/jetpack/androidx/releases/webkit#1.19.0-alpha01)

```
@RequiresFeature(name = WebViewFeature.NAVIGATION_GET_RESPONSE_HEADERS, enforcement = "androidx.webkit.WebViewFeature#isFeatureSupported")
fun getStatusCode(): Int
```

Returns the status code received by the navigation for the current redirect callback.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The HTTP status code. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/UnsupportedOperationException.html` | if the `https://developer.android.com/reference/kotlin/androidx/webkit/WebViewFeature#NAVIGATION_GET_RESPONSE_HEADERS()` feature is not supported. |