WebKit2WebExtension.URIRequest

g GObject.Object GObject.Object WebKit2WebExtension.URIRequest WebKit2WebExtension.URIRequest GObject.Object->WebKit2WebExtension.URIRequest

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (uri)

get_http_headers ()

get_http_method ()

get_uri ()

set_uri (uri)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

uri

str

r/w/c

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class WebKit2WebExtension.URIRequest(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2WebExtension.URIRequestClass

Represents a URI request.

A WebKit2WebExtension.URIRequest can be created with a URI using the WebKit2WebExtension.URIRequest.new() method, and you can get the URI of an existing request with the WebKit2WebExtension.URIRequest.get_uri() one.

classmethod new(uri)
Parameters:

uri (str) – an URI

Returns:

a new WebKit2WebExtension.URIRequest

Return type:

WebKit2WebExtension.URIRequest

Creates a new WebKit2WebExtension.URIRequest for the given URI.

get_http_headers()
Returns:

a Soup.MessageHeaders with the HTTP headers of self or None if self is not an HTTP request.

Return type:

Soup.MessageHeaders

Get the HTTP headers of a WebKit2WebExtension.URIRequest as a Soup.MessageHeaders.

get_http_method()
Returns:

the HTTP method of the WebKit2WebExtension.URIRequest or None if self is not an HTTP request.

Return type:

str

Get the HTTP method of the WebKit2WebExtension.URIRequest.

New in version 2.12.

get_uri()
Returns:

request URI, as a string.

Return type:

str

Obtains the request URI.

set_uri(uri)
Parameters:

uri (str) – an URI

Set the URI of self

Property Details

WebKit2WebExtension.URIRequest.props.uri
Name:

uri

Type:

str

Default Value:

'about:blank'

Flags:

READABLE, WRITABLE, CONSTRUCT

The URI to which the request will be made.