Skip to content

Response

UnifiedResponse

A unified response object.

encoding property

Returns the encoding of the response.

Returns:

Name Type Description
str str

The encoding of the response.

content_type property

Returns the content type of the response from the corresponding header.

Returns:

Name Type Description
str str

The content type of the response.

status_code property

Returns the status code of the response.

Returns:

Name Type Description
int int

The status code of the response.

headers property

Returns the headers of the response.

Returns:

Name Type Description
dict dict

The headers of the response.

response_time property

Returns the response time of the response.

Returns:

Name Type Description
float float

The response time of the response.

content property

Returns the content of the response.

Returns:

Name Type Description
Any Any

The content of the response.

text property

Returns the text of the response.

Returns:

Name Type Description
str str

The text of the response.

errors property

Returns the errors of the response.

Returns:

Name Type Description
Any

The errors of the response.