WebView.loadBytes

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.

class WebView
void
loadBytes
(,
string mimeType = null
,
string encoding = null
,
string baseUri = null
)

Parameters

bytes glib.bytes.Bytes

input data to load

mimeType string

the MIME type of bytes, or null

encoding string

the character encoding of bytes, or null

baseUri string

the base URI for relative locations or null