URIRequest#
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 aMessageHeaders
.
- get_http_method() str #
Get the HTTP method of the
URIRequest
.Added in version 2.12.