aboutsummaryrefslogtreecommitdiffstats
path: root/examples/add_header.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/add_header.py')
-rw-r--r--examples/add_header.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/add_header.py b/examples/add_header.py
new file mode 100644
index 00000000..cf1b53cc
--- /dev/null
+++ b/examples/add_header.py
@@ -0,0 +1,2 @@
+def response(context, flow):
+ flow.response.headers["newheader"] = "foo"