diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 02:53:01 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 02:53:01 +0200 |
commit | 457025df9a64f312685774cb743eeb52cd37bd3f (patch) | |
tree | 98de6633322059ac95ab50e4b2d3129aa6051b58 /docs/features/setheaders.rst | |
parent | 436a9ea8398e25709f139fde609aa74e8fb3f3f8 (diff) | |
parent | c3f73552b82923e8da224529895332c44bf8dace (diff) | |
download | mitmproxy-457025df9a64f312685774cb743eeb52cd37bd3f.tar.gz mitmproxy-457025df9a64f312685774cb743eeb52cd37bd3f.tar.bz2 mitmproxy-457025df9a64f312685774cb743eeb52cd37bd3f.zip |
Merge pull request #751 from mitmproxy/readthedocs
Move Docs to readthedocs
Diffstat (limited to 'docs/features/setheaders.rst')
-rw-r--r-- | docs/features/setheaders.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/features/setheaders.rst b/docs/features/setheaders.rst new file mode 100644 index 00000000..cbc8b6a5 --- /dev/null +++ b/docs/features/setheaders.rst @@ -0,0 +1,19 @@ +.. _setheaders: + +Set Headers +=========== + +This feature lets you specify a set of headers to be added to requests or +responses, based on a filter pattern. You can specify these either on the +command-line, or through an interactive editor in mitmproxy. + +Example: Set the **Host** header to "example.com" for all requests. + +.. code-block:: none + + mitmdump -R http://example.com --setheader :~q:Host:example.com + +================== ============================= +command-line :option:`--setheader PATTERN` +mitmproxy shortcut :kbd:`o` then :kbd:`H` +================== ============================= |