def __init__(self, environ):
self.environ = environ<EOL>self.method = environ.get('<STR_LIT>', '<STR_LIT:GET>')<EOL>self.path = environ.get('<STR_LIT>', '<STR_LIT:/>')<EOL>if not self.path:<EOL><INDENT>self.path = '<STR_LIT:/>'<EOL><DEDENT>self.query = MultiDict()<EOL>self.form = MultiDict()<EOL>self.cookies = MultiDict()<EOL>if '<STR_LIT>' in environ:<EOL><INDENT>for k, v in urllib.parse.parse_qsl(environ['<STR_LIT>']):<EOL><INDENT>self.query[k] = v<EOL><DEDENT><DEDENT>if '<STR_LIT>' in environ:<EOL><INDENT>fs = cgi.FieldStorage(fp=environ['<STR_LIT>'],<EOL>environ=environ)<EOL>for k in fs:<EOL><INDENT>for v in fs.getlist(k):<EOL><INDENT>self.form[k] = v<EOL><DEDENT><DEDENT><DEDENT>if '<STR_LIT>' in environ:<EOL><INDENT>cookies = http.cookies.SimpleCookie(environ['<STR_LIT>'])<EOL>for c in cookies.values():<EOL><INDENT>self.cookies[c.key] = c.value<EOL><DEDENT><DEDENT>
Initialize the current request object.

        Arguments:
          environ (dict): Dictionary of environment variables.