Base asyncio userver client that implements HTTP requests to service.
Compatible with werkzeug interface.
Public Member Functions | |
__init__ (self, client) | |
http.ClientResponse | post (self, str path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
Make a HTTP POST request. | |
http.ClientResponse | put (self, path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
Make a HTTP PUT request. | |
http.ClientResponse | patch (self, path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
Make a HTTP PATCH request. | |
http.ClientResponse | get (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
Make a HTTP GET request. | |
http.ClientResponse | delete (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
Make a HTTP DELETE request. | |
http.ClientResponse | options (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
Make a HTTP OPTIONS request. | |
http.ClientResponse | request (self, str http_method, str path, **kwargs) |
Make a HTTP request with the specified method. | |
Protected Member Functions | |
typing.Awaitable[http.ClientResponse] | _wrap_client_response (self, aiohttp.ClientResponse response) |
Protected Attributes | |
_client | |
pytest_userver.client.ClientWrapper.__init__ | ( | self, | |
client ) |
|
protected |
http.ClientResponse pytest_userver.client.ClientWrapper.delete | ( | self, | |
str | path, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.get | ( | self, | |
str | path, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.options | ( | self, | |
str | path, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.patch | ( | self, | |
path, | |||
annotations.JsonAnyOptional | json = None, | ||
typing.Any | data = None, | ||
typing.Optional[typing.Dict[str, str]] | params = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.post | ( | self, | |
str | path, | ||
annotations.JsonAnyOptional | json = None, | ||
typing.Any | data = None, | ||
typing.Optional[typing.Dict[str, str]] | params = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.put | ( | self, | |
path, | |||
annotations.JsonAnyOptional | json = None, | ||
typing.Any | data = None, | ||
typing.Optional[typing.Dict[str, str]] | params = None, | ||
typing.Optional[str] | bearer = None, | ||
typing.Optional[str] | x_real_ip = None, | ||
typing.Optional[typing.Dict[str, str]] | headers = None, | ||
** | kwargs ) |
http.ClientResponse pytest_userver.client.ClientWrapper.request | ( | self, | |
str | http_method, | ||
str | path, | ||
** | kwargs ) |