Trait webkit2gtk::prelude::URISchemeRequestExt
source · [−]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
Required Methods
sourcefn finish(
&self,
stream: &impl IsA<InputStream>,
stream_length: i64,
content_type: Option<&str>
)
fn finish(
&self,
stream: &impl IsA<InputStream>,
stream_length: i64,
content_type: Option<&str>
)
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
sourcefn finish_error(&self, error: &mut Error)
fn finish_error(&self, error: &mut Error)
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
sourcefn http_method(&self) -> Option<GString>
fn http_method(&self) -> Option<GString>
Available on crate feature
v2_36
only.