(self, status: int, content_type: str, body: bytes)
| 93 | pass |
| 94 | |
| 95 | def _send(self, status: int, content_type: str, body: bytes) -> None: |
| 96 | self.send_response(status) |
| 97 | self.send_header("content-type", content_type) |
| 98 | self.send_header("content-length", str(len(body))) |
| 99 | self.end_headers() |
| 100 | self.wfile.write(body) |
| 101 | |
| 102 | def _route(self) -> None: |
| 103 | path = self.path.split("?", 1)[0].lower() |