1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# Stubs for requests_mock.response
import io
from typing import Any, Dict
from requests import Request, Response
from requests.cookies import RequestsCookieJar
class CookieJar(RequestsCookieJar):
def set(self, name: Any, value: Any, **kwargs: Any) -> Any: ...
class _FakeConnection:
def send(self, request: Any, **kwargs: Any) -> None: ...
def close(self) -> None: ...
class _IOReader(io.BytesIO):
def read(self, *args: Any, **kwargs: Any) -> Any: ...
def create_response(request: Any, **kwargs: Any) -> Response: ...
class _Context:
headers: Dict[str,str] = ...
status_code: int = ...
reason: str = ...
cookies: Any = ...
def __init__(self,
headers: Dict[str, str],
status_code: int,
reason: str,
cookies: Any) -> None: ...
class _MatcherResponse:
def __init__(self, **kwargs: Any) -> None: ...
def get_response(self, request: Request) -> Response: ...
Context = _Context
|