1.0.0-beta.1 • Published 3 years ago
@graphqland/http-graphql-playground v1.0.0-beta.1
http-graphql-playground
HTTP request for graphql-playground with standard Request and Response
Usage
createHandler- Create HTTP request handler forgraphql-playground.validateRequest- Validate the request is valid GraphQL playground request or not.
import { createHandler } from "https://deno.land/x/http_graphql_playground@$VERSION/mod.ts";
import { serve } from "https://deno.land/std@$VERSION/http/mod.ts";
const handler = createHandler({
endpoint: "/graphql",
});
await serve(handler);Spec
The response includes the following response status codes and headers:
| Code | Content | Headers |
|---|---|---|
200 | text/html | content-type, vary |
405 | - | allow |
406 | text/plain | content-type, vary |
License
Copyright © 2022-present graphqland.
Released under the MIT license
1.0.0-beta.1
3 years ago