<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/URLSchemeTaskResult/response(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit19URLSchemeTaskResultO8responseyACSo13NSURLResponseCcACmF"
  },
  "title" : "URLSchemeTaskResult.response(_:)"
}
-->

# URLSchemeTaskResult.response(_:)

The response to return to WebKit. The response value must include the MIME type of the request resource.

```
case response(URLResponse)
```

## Discussion

This value is used to provide WebKit with the MIME type of the requested resource and its expected
size. This must be added to the task result sequence at least once, but may be added multiple times
if needed. It must be added to the sequence before any data values are.

---

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)