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

Method permanent_redirect

tests/conftest.py:83–86  ·  view source on GitHub ↗
(self, env, start_response)

Source from the content-addressed store, hash-verified

81 return [pformat(env).encode("utf8")]
82
83 def permanent_redirect(self, env, start_response):
84 headers = [("Location", "/permalink")]
85 start_response("301 Moved Permanently", headers)
86 return [b"See: /permalink"]
87
88 def permalink(self, env, start_response):
89 start_response("200 OK", [("Content-Type", "text/plain")])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected