Protocol

WKURLSchemeTask

A task created to load a resource.

Declaration

protocol WKURLSchemeTask

Topics

Request

var request: URLRequest

The request to load.

Required.

Processing the Request

func didReceive(URLResponse)

Set the current response object for the task

Required.

func didReceive(Data)

Adds received data to the task.

Required.

func didFinish()

Mark the task as successfully completed.

Required.

func didFailWithError(Error)

Mark the task as failed.

Required.

Relationships

Inherits From

See Also

URL Scheme Handling

protocol WKURLSchemeHandler

A protocol for loading resources with URL schemes that WebKit doesn't know how to handle.