def do_GET(self):
<EOL>if self.path.startswith(self.serve_url):<EOL><INDENT>from_key = self.path[len(self.serve_url):]<EOL>val_res = self.decrypt_yubikey_otp(from_key)<EOL>self.send_response(<NUM_LIT:200>)<EOL>self.send_header('<STR_LIT>', '<STR_LIT>')<EOL>self.end_headers()<EOL>self.wfile.write(val_res)<EOL>self.wfile.write("<STR_LIT:\n>")<EOL><DEDENT>elif self.stats_url and self.path == self.stats_url:<EOL><INDENT>self.send_response(<NUM_LIT:200>)<EOL>self.send_header('<STR_LIT>', '<STR_LIT>')<EOL>self.end_headers()<EOL>for key in stats:<EOL><INDENT>self.wfile.write("<STR_LIT>" % (key, stats[key]))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.log_error("<STR_LIT>" % (self.path, self.serve_url))<EOL>self.send_response(<NUM_LIT>, '<STR_LIT>')<EOL>self.end_headers()<EOL><DEDENT>
Handle a HTTP GET request.