userver: testsuite.utils.http.ClientResponse Class Reference
Loading...
Searching...
No Matches
testsuite.utils.http.ClientResponse Class Reference

Detailed Description

Definition at line 230 of file http.py.

Public Member Functions

 __init__ (self, aiohttp.ClientResponse response, bytes content, *, json_loads)
 __repr__ (self)
int status_code (self)
int status (self)
str|None reason (self)
bytes content (self)
str text (self)
typing.Any json (self)
 form (self)
 headers (self)
 content_type (self)
 encoding (self)
 cookies (self)
None raise_for_status (self)

Public Attributes

 text

Protected Attributes

 _response = response
bytes _content = content
str|None _text = None
dict[str, str]|None _form = None
 _json_loads = json_loads

Constructor & Destructor Documentation

◆ __init__()

testsuite.utils.http.ClientResponse.__init__ ( self,
aiohttp.ClientResponse response,
bytes content,
* ,
json_loads )

Definition at line 231 of file http.py.

Member Function Documentation

◆ __repr__()

testsuite.utils.http.ClientResponse.__repr__ ( self)

Definition at line 244 of file http.py.

◆ content()

bytes testsuite.utils.http.ClientResponse.content ( self)

Definition at line 264 of file http.py.

◆ content_type()

testsuite.utils.http.ClientResponse.content_type ( self)

Definition at line 297 of file http.py.

◆ cookies()

testsuite.utils.http.ClientResponse.cookies ( self)

Definition at line 305 of file http.py.

◆ encoding()

testsuite.utils.http.ClientResponse.encoding ( self)

Definition at line 301 of file http.py.

◆ form()

testsuite.utils.http.ClientResponse.form ( self)

Definition at line 278 of file http.py.

◆ headers()

testsuite.utils.http.ClientResponse.headers ( self)

Definition at line 293 of file http.py.

◆ json()

typing.Any testsuite.utils.http.ClientResponse.json ( self)

Definition at line 274 of file http.py.

◆ raise_for_status()

None testsuite.utils.http.ClientResponse.raise_for_status ( self)

Definition at line 308 of file http.py.

◆ reason()

str | None testsuite.utils.http.ClientResponse.reason ( self)

Definition at line 260 of file http.py.

◆ status()

int testsuite.utils.http.ClientResponse.status ( self)

Definition at line 256 of file http.py.

◆ status_code()

int testsuite.utils.http.ClientResponse.status_code ( self)

Definition at line 251 of file http.py.

◆ text()

str testsuite.utils.http.ClientResponse.text ( self)

Definition at line 268 of file http.py.

Member Data Documentation

◆ _content

bytes testsuite.utils.http.ClientResponse._content = content
protected

Definition at line 239 of file http.py.

◆ _form

dict[str, str] | None testsuite.utils.http.ClientResponse._form = None
protected

Definition at line 241 of file http.py.

◆ _json_loads

testsuite.utils.http.ClientResponse._json_loads = json_loads
protected

Definition at line 242 of file http.py.

◆ _response

testsuite.utils.http.ClientResponse._response = response
protected

Definition at line 238 of file http.py.

◆ _text

str | None testsuite.utils.http.ClientResponse._text = None
protected

Definition at line 240 of file http.py.

◆ text

testsuite.utils.http.ClientResponse.text

Definition at line 275 of file http.py.


The documentation for this class was generated from the following file: