WebView.loadBytes

void loadBytes(glib.bytes.Bytes bytes, string mimeType = null, string encoding = null, string baseUri = null)

Load the specified bytes into web_view using the given mime_type and encoding.

When mime_type is null, it defaults to "text/html". When encoding is null, it defaults to "UTF-8". When base_uri is null, it defaults to "about:blank". You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.

Parameters

bytesinput data to load
mimeTypethe MIME type of bytes, or null
encodingthe character encoding of bytes, or null
baseUrithe base URI for relative locations or null