Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def handle_get(self, start_response) -> List[bytes]:
start_response(HTTP_STATUS_200_OK, [("Content-Type", CONTENT_TYPE_TEXT_HTML)])
return [PLAYGROUND_HTML.encode("utf-8")]
async def handle_get(self) -> None:
await self.send_response(
200,
PLAYGROUND_HTML.encode("utf-8"),
headers=[(b"Content-Type", CONTENT_TYPE_TEXT_HTML.encode("utf-8"))],
)
def handle_get(self, start_response) -> List[bytes]:
start_response(HTTP_STATUS_200_OK, [("Content-Type", CONTENT_TYPE_TEXT_HTML)])
return [PLAYGROUND_HTML.encode("utf-8")]