aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/options.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-02-24 15:45:12 +1300
committerAldo Cortesi <aldo@nullcube.com>2018-02-24 15:45:12 +1300
commit704c1db1b7aa25c4ee6371bec811e92409b92398 (patch)
treec0cb32622569af0e0dc56e85e7c20486e6eaa05b /mitmproxy/options.py
parent12633adeb9cbe3a81df2f6dfd9b739eae26bdcba (diff)
downloadmitmproxy-704c1db1b7aa25c4ee6371bec811e92409b92398.tar.gz
mitmproxy-704c1db1b7aa25c4ee6371bec811e92409b92398.tar.bz2
mitmproxy-704c1db1b7aa25c4ee6371bec811e92409b92398.zip
addon options: setheaders, stickyauth
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r--mitmproxy/options.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index e42ff0e9..bf2012d7 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -67,7 +67,6 @@ class Options(optmanager.OptManager):
view_filter = None # type: Optional[str]
# FIXME: Options that should be uncomplicated to migrate to addons
- setheaders = None # type: Sequence[str]
stickyauth = None # type: Optional[str]
stickycookie = None # type: Optional[str]
stream_large_bodies = None # type: Optional[str]
@@ -91,21 +90,10 @@ class Options(optmanager.OptManager):
"Use the Host header to construct URLs for display."
)
self.add_option(
- "setheaders", Sequence[str], [],
- """
- Header set pattern of the form "/pattern/header/value", where the
- separator can be any character.
- """
- )
- self.add_option(
"stickycookie", Optional[str], None,
"Set sticky cookie filter. Matched against requests."
)
self.add_option(
- "stickyauth", Optional[str], None,
- "Set sticky auth filter. Matched against requests."
- )
- self.add_option(
"stream_large_bodies", Optional[str], None,
"""
Stream data to the client if response body exceeds the given