MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / serve_apple_touch_icon

Method serve_apple_touch_icon

utils.py:424–434  ·  view source on GitHub ↗
(self, handler)

Source from the content-addressed store, hash-verified

422 handler.end_headers()
423
424 def serve_apple_touch_icon(self, handler):
425 handler.send_response(200)
426 handler.send_header("Content-type", "image/png")
427 handler.end_headers()
428 icon_path = os.path.join(self.shared_data.webdir, 'icons/apple-touch-icon.png')
429 try:
430 with open(icon_path, 'rb') as file:
431 handler.wfile.write(file.read())
432 except FileNotFoundError:
433 handler.send_response(404)
434 handler.end_headers()
435
436 def scan_wifi(self, handler):
437 try:

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected