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

Method serve_manifest

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

Source from the content-addressed store, hash-verified

410 handler.end_headers()
411
412 def serve_manifest(self, handler):
413 handler.send_response(200)
414 handler.send_header("Content-type", "application/json")
415 handler.end_headers()
416 manifest_path = os.path.join(self.shared_data.webdir, 'manifest.json')
417 try:
418 with open(manifest_path, 'r') as file:
419 handler.wfile.write(file.read().encode('utf-8'))
420 except FileNotFoundError:
421 handler.send_response(404)
422 handler.end_headers()
423
424 def serve_apple_touch_icon(self, handler):
425 handler.send_response(200)

Callers

nothing calls this directly

Calls 3

writeMethod · 0.45
encodeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected