mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
83f8522981
inserting " .. option::" tags create ugly markup, so we just ditch this entirely and continue using refs.
20 lines
583 B
ReStructuredText
20 lines
583 B
ReStructuredText
.. _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 ``--setheader PATTERN``
|
|
mitmproxy shortcut :kbd:`o` then :kbd:`H`
|
|
================== =======================
|