raw_args for request objects

This commit is contained in:
monobot 2017-03-29 22:06:54 +01:00
parent 9c68d713ba
commit 5b704478d9

View File

@ -121,6 +121,10 @@ class Request(dict):
self.parsed_args = RequestParameters() self.parsed_args = RequestParameters()
return self.parsed_args return self.parsed_args
@property
def raw_args(self):
return {k: v[0] for k, v in self.args.items()}
@property @property
def cookies(self): def cookies(self):
if self._cookies is None: if self._cookies is None: