public class GraphQlHttpHandler
extends java.lang.Object
RouterFunctions.| Constructor and Description |
|---|
GraphQlHttpHandler(WebGraphQlHandler graphQlHandler)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.function.ServerResponse |
handleRequest(org.springframework.web.servlet.function.ServerRequest request)
Handle GraphQL requests over HTTP.
|
public GraphQlHttpHandler(WebGraphQlHandler graphQlHandler)
graphQlHandler - common handler for GraphQL over HTTP requestspublic org.springframework.web.servlet.function.ServerResponse handleRequest(org.springframework.web.servlet.function.ServerRequest request)
throws javax.servlet.ServletException
request - the incoming HTTP requestjavax.servlet.ServletException - may be raised when reading the request body, e.g.
HttpMediaTypeNotSupportedException.