Web encapsulates the web content to be displayed in a web frame view. A
Web object has a representation object, conforming to the
Web protocol, that holds the data in an appropriate format depending on the MIME type. You can extend WebKit to support new MIME types by implementing your own view and representation classes, and specifying the mapping between them using the
Web class method.
- macOS 10.3–10.14Deprecated
Web objects have an associated initial request, possibly a modified request, and a response object. Since the data source may be in the process of being loaded, you should check the state of a data source using
is before accessing its data. Use
data to get the raw data. Use the
representation method to get the actual representation object and query it for more details.