From 853cd810757a02252402da22ae77cab77c5a3fb6 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 6 Sep 2015 01:37:15 +0200 Subject: docs++ --- docs/features/setheaders.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/features/setheaders.rst (limited to 'docs/features/setheaders.rst') diff --git a/docs/features/setheaders.rst b/docs/features/setheaders.rst new file mode 100644 index 00000000..0a6c2296 --- /dev/null +++ b/docs/features/setheaders.rst @@ -0,0 +1,18 @@ +.. _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: +.. 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` +================== ============================= \ No newline at end of file -- cgit v1.2.3 From b4013659a81a48908eb3e060f04143ba1f9689bb Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 6 Sep 2015 03:20:58 +0200 Subject: docs :tada: --- docs/features/setheaders.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/features/setheaders.rst') diff --git a/docs/features/setheaders.rst b/docs/features/setheaders.rst index 0a6c2296..f118e6f8 100644 --- a/docs/features/setheaders.rst +++ b/docs/features/setheaders.rst @@ -7,7 +7,8 @@ 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: +Example: Set the **Host** header to "example.com" for all requests. + .. code-block:: none mitmdump -R http://example.com --setheader :~q:Host:example.com -- cgit v1.2.3 From c4286b15dc3d95f52b7ce5b5292796109fa77f3f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 7 Sep 2015 10:52:18 +0200 Subject: docs: minor fixes --- docs/features/setheaders.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/features/setheaders.rst') diff --git a/docs/features/setheaders.rst b/docs/features/setheaders.rst index f118e6f8..cbc8b6a5 100644 --- a/docs/features/setheaders.rst +++ b/docs/features/setheaders.rst @@ -16,4 +16,4 @@ Example: Set the **Host** header to "example.com" for all requests. ================== ============================= command-line :option:`--setheader PATTERN` mitmproxy shortcut :kbd:`o` then :kbd:`H` -================== ============================= \ No newline at end of file +================== ============================= -- cgit v1.2.3