WebKit2.URIRequest

g GObject.Object GObject.Object WebKit2.URIRequest WebKit2.URIRequest GObject.Object->WebKit2.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 WebKit2.URIRequest(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit2.URIRequestClass

Represents a URI request.

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

classmethod new(uri)
Parameters:

uri (str) – an URI

Returns:

a new WebKit2.URIRequest

Return type:

WebKit2.URIRequest

Creates a new WebKit2.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 WebKit2.URIRequest as a Soup.MessageHeaders.

get_http_method()
Returns:

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

Return type:

str

Get the HTTP method of the WebKit2.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

WebKit2.URIRequest.props.uri
Name:

uri

Type:

str

Default Value:

'about:blank'

Flags:

READABLE, WRITABLE, CONSTRUCT

The URI to which the request will be made.