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.

Declaration

@interface WebResource : NSObject

Overview

Use the initWithData: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.

Topics

Initializing

- initWithData:URL:MIMEType:textEncodingName:frameName:

Initializes and returns a web resource instance.

Getting attributes

data

The receiver’s data.

URL

The receiver’s URL.

MIMEType

The receiver’s MIME type.

textEncodingName

The receiver’s text encoding name.

frameName

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

Relationships

Inherits From

Conforms To

See Also

Loading Resources (Legacy)

WebResourceLoadDelegate

Web view resource load delegates implement this protocol to be notified on the progress of loading individual resources. Note that there can be hundreds of resources, such as images and other media, per page. So, if you just want to get page loading status see the WebFrameLoadDelegate protocol.

Deprecated