MCPcopy Create free account
hub / github.com/ActiveState/code / do_GET

Method do_GET

recipes/Python/474094_UrlAppServer/recipe-474094.py:28–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26
27class UrlAppHandler(BaseHTTPRequestHandler):
28 def do_GET(self):
29 args = parse(self.path)
30 fun,args = locate(self.server, args)
31 self.send_response(200)
32 self.end_headers()
33 try:
34 run(fun, args, self.rfile, self.wfile)
35 except:
36 self.wfile.write(format_exc())
37
38class UrlApp:
39 def __call__(self, *a, **kw): pass

Callers

nothing calls this directly

Calls 7

format_excFunction · 0.85
send_responseMethod · 0.80
parseFunction · 0.70
locateFunction · 0.70
runFunction · 0.70
end_headersMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected