URIRequest

class URIRequest(**properties: Any)

Superclasses: Object

Represents a URI request.

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

Constructors

class URIRequest
classmethod new(uri: str) URIRequest

Creates a new URIRequest for the given URI.

Parameters:

uri – an URI

Methods

class URIRequest
get_http_headers() MessageHeaders

Get the HTTP headers of a URIRequest as a MessageHeaders.

get_http_method() str

Get the HTTP method of the URIRequest.

Added in version 2.12.

get_uri() str

Obtains the request URI.

set_uri(uri: str) None

Set the URI of request

Parameters:

uri – an URI

Properties

class URIRequest
props.uri: str

The URI to which the request will be made.