aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/add_header.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/add_header.py')
-rw-r--r--examples/simple/add_header.py5
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"