Contents

load(_:mimeType:textEncodingName:baseURL:)

Sets the main page contents, MIME type, content encoding, and base URL.

Declaration

func load(_ data: Data!, mimeType MIMEType: String!, textEncodingName encodingName: String!, baseURL URL: URL!)

Parameters

  • data:

    The data to use for the main page of the document.

  • MIMEType:

    The MIME type of the data.

  • encodingName:

    The IANA encoding name (for example, “utf-8” or “utf-16”).

  • URL:

    A file that is used to resolve relative URLs within the document.

See Also

Loading Content