MCPcopy Create free account
hub / github.com/csound/csound / do_GET

Method do_GET

Emscripten/examples/httpd.py:133–146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 return SimpleHTTPServer.SimpleHTTPRequestHandler.send_head(self)
132
133 def do_GET(self):
134 # TODO(binji): pyauto tests use the ?quit=1 method to kill the server.
135 # Remove this when we kill the pyauto tests.
136 _, _, _, query, _ = urlparse.urlsplit(self.path)
137 if query:
138 params = urlparse.parse_qs(query)
139 if '1' in params.get('quit', []):
140 self._SendNothingAndDie()
141 return
142
143 delegate = self._FindDelegateForURL(self.path)
144 if delegate:
145 return delegate.do_GET(self)
146 return self.base_do_GET()
147
148 def base_do_GET(self):
149 return SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self)

Callers 1

base_do_GETMethod · 0.80

Calls 4

_SendNothingAndDieMethod · 0.95
_FindDelegateForURLMethod · 0.95
base_do_GETMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected