diff options
Diffstat (limited to 'examples/simple/add_header.py')
-rw-r--r-- | examples/simple/add_header.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/simple/add_header.py b/examples/simple/add_header.py index 3e0b5f1e..64fc6267 100644 --- a/examples/simple/add_header.py +++ b/examples/simple/add_header.py @@ -1,2 +1,5 @@ -def response(flow): +from mitmproxy import http + + +def response(flow: http.HTTPFlow) -> None: flow.response.headers["newheader"] = "foo" |