<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKNavigationResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKNavigationResponse"
  },
  "title" : "WKNavigationResponse"
}
-->

# WKNavigationResponse

An object that contains the response to a navigation request, and which you use to make navigation-related policy decisions.

```
@MainActor class WKNavigationResponse
```

## Overview

Use a [`WKNavigationResponse`](/documentation/WebKit/WKNavigationResponse) object to make policy decisions about whether to allow navigation within your app’s web view. You don’t create [`WKNavigationResponse`](/documentation/WebKit/WKNavigationResponse) objects directly. Instead, the web view creates them and delivers them to the appropriate delegate objects. Use the methods of your delegate to analyze the response and determine whether to allow the resulting navigation to occur.

## Topics

### Getting the Response Details

[`response`](/documentation/WebKit/WKNavigationResponse/response)

The frame’s response.

### Getting Additional Response Information

[`canShowMIMEType`](/documentation/WebKit/WKNavigationResponse/canShowMIMEType)

A Boolean value that indicates whether WebKit is capable of displaying the response’s MIME type natively.

[`isForMainFrame`](/documentation/WebKit/WKNavigationResponse/isForMainFrame)

A Boolean value that indicates whether the response targets the web view’s main frame.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)