def do_GET(self):
global http_session<EOL>self.process_url()<EOL>path = self.path<EOL>query = self.query<EOL>if '<STR_LIT>' == path:<EOL><INDENT>self.write('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>if '<STR_LIT>' in query:<EOL><INDENT>if query['<STR_LIT>'] == '<STR_LIT>':<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self.write('<STR_LIT>'.format(query['<STR_LIT>']))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.write('<STR_LIT>')<EOL><DEDENT><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.add_session('<STR_LIT>', query['<STR_LIT>'])<EOL>self.send_headers(<NUM_LIT>, {'<STR_LIT:location>': '<STR_LIT>'})<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>if '<STR_LIT>' in http_session:<EOL><INDENT>del http_session['<STR_LIT>']<EOL><DEDENT>self.send_headers(<NUM_LIT>, {'<STR_LIT:location>': '<STR_LIT>'})<EOL><DEDENT>elif '<STR_LIT>' == path and '<STR_LIT>' == query['<STR_LIT>']:<EOL><INDENT>if '<STR_LIT>' in http_session:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>')<EOL>self.write('<STR_LIT>')<EOL><DEDENT><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path and '<STR_LIT:id>' in query and query['<STR_LIT:id>'] in ['<STR_LIT:1>', '<STR_LIT:2>']:<EOL><INDENT>self.output_file('<STR_LIT>'.format(query['<STR_LIT:id>']))<EOL><DEDENT>elif '<STR_LIT>' == path and '<STR_LIT>' == query['<STR_LIT>']:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path and '<STR_LIT>' == query['<STR_LIT>']:<EOL><INDENT>self.output_file('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path and '<STR_LIT:id>' in query and query['<STR_LIT:id>'] in ['<STR_LIT:1>', '<STR_LIT:2>', '<STR_LIT:3>']:<EOL><INDENT>self.output_file('<STR_LIT>'.format(query['<STR_LIT:id>']))<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.write(json.dumps(http_session))<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.write('<STR_LIT>')<EOL><DEDENT>elif '<STR_LIT>' == path:<EOL><INDENT>self.write('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>self.write('<STR_LIT>')<EOL><DEDENT>
Process at GET request