MCPcopy
hub / github.com/mitmproxy/mitmproxy / request

Function request

examples/contrib/block_dns_over_https.py:351–360  ·  view source on GitHub ↗
(flow)

Source from the content-addressed store, hash-verified

349
350
351def request(flow):
352 for check in doh_request_detection_checks:
353 is_doh = check(flow)
354 if is_doh:
355 logging.warning(
356 '[DoH Detection] DNS over HTTPS request detected via method "%s"'
357 % check.__name__
358 )
359 flow.kill()
360 break

Callers

nothing calls this directly

Calls 2

checkFunction · 0.85
killMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…