mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 02:57:19 +00:00
10 lines
175 B
Python
10 lines
175 B
Python
from mitmproxy import http
|
|
|
|
|
|
class AddHeader:
|
|
def response(self, flow: http.HTTPFlow) -> None:
|
|
flow.response.headers["newheader"] = "foo"
|
|
|
|
|
|
addons = [AddHeader()]
|