aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/language/http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-05-17 15:49:16 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-05-17 15:52:56 +1200
commitabe1f09f2c7eebfccfbf86ca0b16ec6d1711627b (patch)
treeb70e5316f6db6f467827abf198b9d969ae7b045d /libpathod/language/http.py
parentd80fbc24107ac2166b80ccb5f4a240a7f480497b (diff)
downloadmitmproxy-abe1f09f2c7eebfccfbf86ca0b16ec6d1711627b.tar.gz
mitmproxy-abe1f09f2c7eebfccfbf86ca0b16ec6d1711627b.tar.bz2
mitmproxy-abe1f09f2c7eebfccfbf86ca0b16ec6d1711627b.zip
HTTP and websocket requests now have an xN clause to repeat
Diffstat (limited to 'libpathod/language/http.py')
-rw-r--r--libpathod/language/http.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpathod/language/http.py b/libpathod/language/http.py
index daee7e54..543cfee3 100644
--- a/libpathod/language/http.py
+++ b/libpathod/language/http.py
@@ -32,6 +32,10 @@ class Body(base.Value):
preamble = "b"
+class Times(base.Integer):
+ preamble = "x"
+
+
class Method(base.OptionsOrValue):
options = [
"GET",
@@ -284,6 +288,7 @@ class Request(_HTTPMessage):
ShortcutUserAgent,
Raw,
PathodResponse,
+ Times,
actions.PauseAt,
actions.DisconnectAt,
@@ -304,6 +309,10 @@ class Request(_HTTPMessage):
return self.tok(Path)
@property
+ def times(self):
+ return self.tok(Times)
+
+ @property
def pathodspec(self):
return self.tok(PathodResponse)