WebKit2.WebView.prototype.load_bytes
function load_bytes(bytes: ByteArray, mime_type: String, encoding: String, base_uri: String): void { // Gjs wrapper for webkit_web_view_load_bytes() }
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 WebKit2.WebView::load-changed signal.
Since 2.6
- bytes
input data to load
- mime_type
the MIME type of bytes, or null
- encoding
the character encoding of bytes, or null
- base_uri
the base URI for relative locations or null