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

Method req

tests/test_cache_control.py:27–29  ·  view source on GitHub ↗
(self, headers=None)

Source from the content-addressed store, hash-verified

25 url = "http://url.com/"
26
27 def req(self, headers=None):
28 headers = headers or {}
29 return Mock(full_url=self.url, url=self.url, headers=headers) # < 1.x support
30
31 def resp(self, headers=None):
32 headers = headers or {}

Calls

no outgoing calls

Tested by

no test coverage detected