Trait webkit2gtk_webextension::prelude::URIRequestExt
source · [−]pub trait URIRequestExt: 'static {
fn http_method(&self) -> Option<GString>;
fn uri(&self) -> Option<GString>;
fn set_uri(&self, uri: &str);
fn connect_uri_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn http_method(&self) -> Option<GString>
fn http_method(&self) -> Option<GString>
Available on crate feature
v2_12
only.Get the HTTP method of the URIRequest
.
Returns
the HTTP method of the URIRequest
or None
if self
is not
an HTTP request.