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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/simple/add_header.py b/examples/simple/add_header.py
new file mode 100644
index 00000000..3e0b5f1e
--- /dev/null
+++ b/examples/simple/add_header.py
@@ -0,0 +1,2 @@
+def response(flow):
+ flow.response.headers["newheader"] = "foo"