public class GraphiQlHandler extends Object
Constructor and Description |
---|
GraphiQlHandler(String graphQlPath,
String graphQlWsPath)
Constructor that serves the default
graphiql/index.html included
in the spring-graphql module. |
GraphiQlHandler(String graphQlPath,
String graphQlWsPath,
Resource htmlResource)
Constructor with the HTML page to serve.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ServerResponse> |
handleRequest(ServerRequest request)
Render the GraphiQL page as "text/html", or if the "path" query parameter
is missing, add it and redirect back to the same URL.
|
public GraphiQlHandler(String graphQlPath, String graphQlWsPath)
graphiql/index.html
included
in the spring-graphql
module.graphQlPath
- the path to the GraphQL endpointgraphQlWsPath
- optional path to the GraphQL WebSocket endpointpublic GraphiQlHandler(String graphQlPath, String graphQlWsPath, Resource htmlResource)
graphQlPath
- the path to the GraphQL endpointgraphQlWsPath
- optional path to the GraphQL WebSocket endpointhtmlResource
- the GraphiQL page to servepublic reactor.core.publisher.Mono<ServerResponse> handleRequest(ServerRequest request)