MCPcopy Index your code
hub / github.com/microsoft/playwright-python / serve_file

Method serve_file

tests/server.py:124–125  ·  view source on GitHub ↗
(self, path: pathlib.Path)

Source from the content-addressed store, hash-verified

122 self._serve_file(server.static_path / path[1:], path)
123
124 def serve_file(self, path: pathlib.Path) -> None:
125 return self._serve_file(path, urlparse(self.uri.decode()).path)
126
127 def _serve_file(self, path: pathlib.Path, request_path: str) -> None:
128 server = self.channel.factory.server_instance

Callers 2

_show_trace_viewerFunction · 0.80
_show_trace_viewerFunction · 0.80

Calls 1

_serve_fileMethod · 0.95

Tested by 2

_show_trace_viewerFunction · 0.64
_show_trace_viewerFunction · 0.64