diff options
Diffstat (limited to 'src/restRequest.py')
-rw-r--r-- | src/restRequest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/restRequest.py b/src/restRequest.py index b14ad20..8128b08 100644 --- a/src/restRequest.py +++ b/src/restRequest.py @@ -36,6 +36,7 @@ class restRequest: self.echo = None self.code = None self.seq = None + self.backup = None def parser(self,data): self.request_line, self.headers_alone = data.split('\n', 1) @@ -107,6 +108,9 @@ class restRequest: if "code" in json_param: self.code = json_param["code"] + if "backup" in json_param: + self.backup = json_param["backup"] + def get_method(self): return self.method @@ -151,3 +155,6 @@ class restRequest: def getCode(self): return self.code + + def getBackup(self): + return self.backup |