aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/add_header_class.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/add_header_class.py')
-rw-r--r--examples/simple/add_header_class.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/simple/add_header_class.py b/examples/simple/add_header_class.py
index 5d5c7902..419c99ac 100644
--- a/examples/simple/add_header_class.py
+++ b/examples/simple/add_header_class.py
@@ -1,5 +1,8 @@
+from mitmproxy import http
+
+
class AddHeader:
- def response(self, flow):
+ def response(self, flow: http.HTTPFlow) -> None:
flow.response.headers["newheader"] = "foo"