aboutsummaryrefslogtreecommitdiffstats
path: root/docs/features/setheaders.rst
blob: 0a6c2296e5f8adc6fc6def46e5c9b6efd33ccbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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`
================== =============================