MCPcopy Create free account
hub / github.com/bugy/script-server / get

Method get

src/web/server.py:535–542  ·  view source on GitHub ↗
(self, path: str, include_body: bool = True)

Source from the content-addressed store, hash-verified

533class ThemeStaticFileHandler(AuthorizedStaticFileHandler):
534
535 async def get(self, path: str, include_body: bool = True) -> None:
536 if path == 'theme.css':
537 self.absolute_path = self.get_absolute_path(self.root, path)
538 if not os.path.exists(self.absolute_path):
539 # if custom theme doesn't exist, return empty body
540 return
541
542 return await super().get(path, include_body)
543
544
545class ScriptParameterListFiles(BaseRequestHandler):

Callers

nothing calls this directly

Calls 2

get_absolute_pathMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected