MCPcopy
hub / github.com/mitmproxy/mitmproxy / responseHeaderFilter

Function responseHeaderFilter

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

Source from the content-addressed store, hash-verified

2190 function responseHeader(regex){
2191 regex = new RegExp(regex, "i");
2192 function responseHeaderFilter(flow){
2193 return (flow.response && flowutils.ResponseUtils.match_header(flow.response, regex));
2194 }
2195 responseHeaderFilter.desc = "resp. header matches " + regex;
2196 return responseHeaderFilter;
2197 }

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…