aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/redirect_requests.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/simple/redirect_requests.py')
-rw-r--r--examples/simple/redirect_requests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/simple/redirect_requests.py b/examples/simple/redirect_requests.py
index 51876df7..ddb89961 100644
--- a/examples/simple/redirect_requests.py
+++ b/examples/simple/redirect_requests.py
@@ -1,9 +1,10 @@
"""
This example shows two ways to redirect flows to another server.
"""
+from mitmproxy import http
-def request(flow):
+def request(flow: http.HTTPFlow) -> None:
# pretty_host takes the "Host" header of the request into account,
# which is useful in transparent mode where we usually only have the IP
# otherwise.