MCPcopy
hub / github.com/mitmproxy/mitmproxy / headerFilter

Function headerFilter

web/src/js/filt/filt.js:2168–2174  ·  view source on GitHub ↗
(flow)

Source from the content-addressed store, hash-verified

2166 function header(regex){
2167 regex = new RegExp(regex, "i");
2168 function headerFilter(flow){
2169 return (
2170 (flow.request && flowutils.RequestUtils.match_header(flow.request, regex))
2171 ||
2172 (flow.response && flowutils.ResponseUtils.match_header(flow.response, regex))
2173 );
2174 }
2175 headerFilter.desc = "header matches " + regex;
2176 return headerFilter;
2177 }

Callers

nothing calls this directly

Calls 1

match_headerMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…