def cookie(self): """ Cookie values. """ if self._cookie is None: self._cookie = self.arg_container() data = compat.parse_qs(self.http_header('cookie') or '') for k, v in data.items(): self._cookie[k.strip()] = v[0] return self._cookie
def params(self): """ Parsed query string. """ if self._params is None: self._params = self.arg_container() data = compat.parse_qs(self.environ('QUERY_STRING') or '') for k, v in data.items(): self._params[k] = v[0] return self._params