:right-sidebar: True URIResponse =================================================================== .. currentmodule:: gi.repository.WebKitWebProcessExtension .. class:: URIResponse(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: URIResponse(**properties) Methods ------- .. rst-class:: interim-class .. class:: URIResponse :no-index: .. method:: get_content_length() -> int Get the expected content length of the :obj:`~gi.repository.WebKitWebProcessExtension.URIResponse`. It can be 0 if the server provided an incorrect or missing Content-Length. .. method:: get_http_headers() -> ~gi.repository.Soup.MessageHeaders Get the HTTP headers of a :obj:`~gi.repository.WebKitWebProcessExtension.URIResponse` as a :obj:`~gi.repository.Soup.MessageHeaders`. .. versionadded:: 2.6 .. method:: get_mime_type() -> str Gets the MIME type of the response. .. method:: get_status_code() -> int Get the status code of the :obj:`~gi.repository.WebKitWebProcessExtension.URIResponse`. Get the status code of the :obj:`~gi.repository.WebKitWebProcessExtension.URIResponse` as returned by the server. It will normally be a ``SoupKnownStatusCode``, for example ``%SOUP_STATUS_OK``, though the server can respond with any unsigned integer. .. method:: get_suggested_filename() -> str Get the suggested filename for ``response``. Get the suggested filename for ``response``, as specified by the 'Content-Disposition' HTTP header, or :const:`None` if it's not present. .. method:: get_uri() -> str Gets the URI which resulted in the response. Properties ---------- .. rst-class:: interim-class .. class:: URIResponse :no-index: .. attribute:: props.content_length :type: int The expected content length of the response. .. attribute:: props.http_headers :type: ~gi.repository.Soup.MessageHeaders The HTTP headers of the response, or :const:`None` if the response is not an HTTP response. .. versionadded:: 2.6 .. attribute:: props.mime_type :type: str The MIME type of the response. .. attribute:: props.status_code :type: int The status code of the response as returned by the server. .. attribute:: props.suggested_filename :type: str The suggested filename for the URI response. .. attribute:: props.uri :type: str The URI for which the response was made.