MCPcopy
hub / github.com/mitmproxy/mitmproxy / requestHeaderFilter

Function requestHeaderFilter

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

Source from the content-addressed store, hash-verified

2180 function requestHeader(regex){
2181 regex = new RegExp(regex, "i");
2182 function requestHeaderFilter(flow){
2183 return (flow.request && flowutils.RequestUtils.match_header(flow.request, regex));
2184 }
2185 requestHeaderFilter.desc = "req. header matches " + regex;
2186 return requestHeaderFilter;
2187 }

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…