<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit19URLSchemeTaskResultO"
  },
  "title" : "URLSchemeTaskResult"
}
-->

# URLSchemeTaskResult

A value used as part of a sequence of results from a [`URLSchemeHandler`](/documentation/WebKit/URLSchemeHandler), which can either be a `Data` or a `URLResponse`.

```
enum URLSchemeTaskResult
```

## Topics

### Enumeration Cases

[`case data(Data)`](/documentation/WebKit/URLSchemeTaskResult/data(_:))

Data for the resource. This value may contain all of the data or only some of it.

[`case response(URLResponse)`](/documentation/WebKit/URLSchemeTaskResult/response(_:))

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

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)