WebKit2.URISchemeRequest.prototype.finish

function finish(stream: Gio.InputStream, stream_length: Number(gint64), mime_type: String): void {
    // Gjs wrapper for webkit_uri_scheme_request_finish()
}
  

Finish a WebKit2.URISchemeRequest by setting the contents of the request and its mime type.

stream

a Gio.InputStream to read the contents of the request

stream_length

the length of the stream or -1 if not known

mime_type

the content type of the stream or null if not known