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

Method do_GET

ci/autoresearch/net.py:293–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291
292 class TestHandler(BaseHTTPRequestHandler):
293 def do_GET(self) -> None:
294 if self.path == "/ping":
295 self.send_response(200)
296 self.send_header("Content-Type", "text/plain")
297 self.end_headers()
298 self.wfile.write(b"pong")
299 elif self.path == "/data":
300 self.send_response(200)
301 self.send_header("Content-Type", "application/json")
302 self.end_headers()
303 self.wfile.write(b'{"value": 42}')
304 else:
305 self.send_response(404)
306 self.end_headers()
307
308 def log_message(self, format: str, *log_args: Any) -> None:
309 # Suppress default request logging

Callers

nothing calls this directly

Calls 3

send_responseMethod · 0.80
end_headersMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected