URIResponse#
Superclasses: Object
Represents an URI response.
A URIResponse
contains information such as the URI, the
status code, the content length, the mime type, the HTTP status or
the suggested filename.
Methods#
- class URIResponse
- get_content_length() int #
Get the expected content length of the
URIResponse
.It can be 0 if the server provided an incorrect or missing Content-Length.
- get_http_headers() MessageHeaders #
Get the HTTP headers of a
URIResponse
as aMessageHeaders
.Added in version 2.6.
- get_status_code() int #
Get the status code of the
URIResponse
.Get the status code of the
URIResponse
as returned by the server. It will normally be aSoupKnownStatusCode
, for example%SOUP_STATUS_OK
, though the server can respond with any unsigned integer.
Properties#
- class URIResponse
-
- props.http_headers: MessageHeaders#
The type of the None singleton.
Added in version 2.6.