How to use the ariadne.constants.PLAYGROUND_HTML.encode function in ariadne

To help you get started, we’ve selected a few ariadne examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mirumee / ariadne / ariadne / wsgi.py View on Github external
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")]
github patrys / django-channels-ariadne / mysite / graphql.py View on Github external
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"))],
        )
github mirumee / ariadne / ariadne / wsgi.py View on Github external
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")]