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

Detailed Description

Definition at line 191 of file http.py.

Public Member Functions

 __init__ (self, bytes|bytearray|None body=None, str|None text=None, int status=200, typing.Mapping[str, str]|None headers=None, str|None content_type=None, str|None charset=None)
 __repr__ (self)
aiohttp.web.Response to_aiohttp (self)

Protected Attributes

 _body = body
 _text = text
 _status = status
 _headers = headers
 _content_type = content_type
 _charset = charset

Constructor & Destructor Documentation

◆ __init__()

testsuite.utils.http.Response.__init__ ( self,
bytes | bytearray | None body = None,
str | None text = None,
int status = 200,
typing.Mapping[str, str] | None headers = None,
str | None content_type = None,
str | None charset = None )

Definition at line 192 of file http.py.

Member Function Documentation

◆ __repr__()

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

Definition at line 213 of file http.py.

◆ to_aiohttp()

aiohttp.web.Response testsuite.utils.http.Response.to_aiohttp ( self)

Definition at line 219 of file http.py.

Member Data Documentation

◆ _body

testsuite.utils.http.Response._body = body
protected

Definition at line 206 of file http.py.

◆ _charset

testsuite.utils.http.Response._charset = charset
protected

Definition at line 211 of file http.py.

◆ _content_type

testsuite.utils.http.Response._content_type = content_type
protected

Definition at line 210 of file http.py.

◆ _headers

testsuite.utils.http.Response._headers = headers
protected

Definition at line 209 of file http.py.

◆ _status

testsuite.utils.http.Response._status = status
protected

Definition at line 208 of file http.py.

◆ _text

testsuite.utils.http.Response._text = text
protected

Definition at line 207 of file http.py.


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