:right-sidebar: True URIRequest =================================================================== .. currentmodule:: gi.repository.WebKit .. class:: URIRequest(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Represents a URI request. A :obj:`~gi.repository.WebKit.URIRequest` can be created with a URI using the :func:`~gi.repository.WebKit.URIRequest.new` method, and you can get the URI of an existing request with the :func:`~gi.repository.WebKit.URIRequest.get_uri` one. Constructors ------------ .. rst-class:: interim-class .. class:: URIRequest :no-index: .. classmethod:: new(uri: str) -> ~gi.repository.WebKit.URIRequest Creates a new :obj:`~gi.repository.WebKit.URIRequest` for the given URI. :param uri: an URI Methods ------- .. rst-class:: interim-class .. class:: URIRequest :no-index: .. method:: get_http_headers() -> ~gi.repository.Soup.MessageHeaders Get the HTTP headers of a :obj:`~gi.repository.WebKit.URIRequest` as a :obj:`~gi.repository.Soup.MessageHeaders`\. .. method:: get_http_method() -> str Get the HTTP method of the :obj:`~gi.repository.WebKit.URIRequest`\. .. versionadded:: 2.12 .. method:: get_uri() -> str Obtains the request URI. .. method:: set_uri(uri: str) -> None Set the URI of ``request`` :param uri: an URI Properties ---------- .. rst-class:: interim-class .. class:: URIRequest :no-index: .. attribute:: props.uri :type: str The type of the None singleton.