From abe1f09f2c7eebfccfbf86ca0b16ec6d1711627b Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 17 May 2015 15:49:16 +1200 Subject: HTTP and websocket requests now have an xN clause to repeat --- libpathod/language/http.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libpathod/language/http.py') 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, @@ -303,6 +308,10 @@ class Request(_HTTPMessage): def path(self): return self.tok(Path) + @property + def times(self): + return self.tok(Times) + @property def pathodspec(self): return self.tok(PathodResponse) -- cgit v1.2.3