MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / request

Method request

mitmproxy/addons/tlsconfig.py:635–644  ·  view source on GitHub ↗
(self, flow: http.HTTPFlow)

Source from the content-addressed store, hash-verified

633 )
634
635 def request(self, flow: http.HTTPFlow):
636 if not flow.live or flow.error or flow.response:
637 return
638 # Check if a request has a magic CRL token at the end
639 if flow.request.path.endswith(self.crl_path()):
640 flow.response = http.Response.make(
641 200,
642 self.certstore.default_crl,
643 {"Content-Type": "application/pkix-crl"},
644 )
645
646
647def _ip_or_dns_name(val: str) -> x509.GeneralName:

Callers 1

test_crl_requestMethod · 0.95

Calls 2

crl_pathMethod · 0.95
makeMethod · 0.45

Tested by 1

test_crl_requestMethod · 0.76