Class

WebResource

A WebResource object represents a downloaded URL. It encapsulates the data of the download as well as other resource properties such as the URL, MIME type, and frame name.

Overview

Use the init(data:url:mimeType:textEncodingName:frameName:) method to initialize a newly created WebResource object. Use the other methods in this class to get the properties of a WebResource object.

Symbols

Getting attributes

var data: Data!

The receiver’s data.

var url: URL!

The receiver’s URL.

var mimeType: String!

The receiver’s MIME type.

var textEncodingName: String!

The receiver’s text encoding name.

var frameName: String!

The name of the frame. If the receiver does not represent the contents of an entire HTML frame, this is nil.

Relationships

Inherits From