Instance Property

response

The URL response for the loading request.

Declaration

@NSCopying var response: URLResponse? { get set }

Discussion

The value of this property is an instance of URLResponse, indicating a response to the loading request. If no response is needed, the value of this property is nil.

See Also

Reporting the Result of the Request

func finishLoading(with: URLResponse?, data: Data?, redirect: URLRequest?)

Causes the receiver to finish loading a resource for which a resource loader’s delegate took responsibility .

Deprecated
func finishLoading()

Causes the receiver to treat the processing of the request as complete.

var isCancelled: Bool

A Boolean value that indicates whether the request has been cancelled.

func finishLoading(with: Error?)

Causes the receiver to handle the failure to load a resource for which a resource loader’s delegate took responsibility.

var isFinished: Bool

A Boolean value that indicates whether loading of the resource has finished.