WebKit.URIRequest

g GObject.Object GObject.Object WebKit.URIRequest WebKit.URIRequest GObject.Object->WebKit.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)

Class Details

class WebKit.URIRequest(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

WebKit.URIRequestClass

Represents a URI request.

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

classmethod new(uri)
Parameters:

uri (str) – an URI

Returns:

a new WebKit.URIRequest

Return type:

WebKit.URIRequest

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

get_http_method()
Returns:

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

Return type:

str

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

WebKit.URIRequest.props.uri
Name:

uri

Type:

str

Default Value:

'about:blank'

Flags:

READABLE, WRITABLE, CONSTRUCT

The URI to which the request will be made.