MCPcopy Create free account
hub / github.com/psf/cachecontrol / DummyResponse

Class DummyResponse

tests/utils.py:20–30  ·  view source on GitHub ↗

Match a ``urllib3.response.HTTPResponse``.

Source from the content-addressed store, hash-verified

18
19
20class DummyResponse:
21 """Match a ``urllib3.response.HTTPResponse``."""
22
23 version = "1.1"
24 reason = b"Because"
25 strict = 0
26 decode_content = False
27
28 def __init__(self, status, headers):
29 self.status = status
30 self.headers = CaseInsensitiveDict(headers)
31
32
33class DummyRequest:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…