pub trait URISchemeRequestExt: 'static {
    fn finish(
        &self,
        stream: &impl IsA<InputStream>,
        stream_length: i64,
        content_type: Option<&str>
    ); fn finish_error(&self, error: &mut Error); fn http_method(&self) -> Option<GString>; fn path(&self) -> Option<GString>; fn scheme(&self) -> Option<GString>; fn uri(&self) -> Option<GString>; fn web_view(&self) -> Option<WebView>; }
Expand description

Trait containing all URISchemeRequest methods.

Implementors

URISchemeRequest

Required Methods

Finish a 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

content_type

the content type of the stream or None if not known

Available on crate feature v2_2 only.

Finish a URISchemeRequest with a glib::Error.

error

a glib::Error that will be passed to the WebView

Available on crate feature v2_36 only.

Get the HTTP method of the self.

Returns

the HTTP method of the self

Get the URI path of self.

Returns

the URI path of self

Get the URI scheme of self.

Returns

the URI scheme of self

Get the URI of self.

Returns

the full URI of self

Get the WebView that initiated the request.

Returns

the WebView that initiated self.

Implementors