Class GraphQlHttpHandler

java.lang.Object
org.springframework.graphql.server.webflux.GraphQlHttpHandler

public class GraphQlHttpHandler extends Object
WebFlux.fn Handler for GraphQL over HTTP requests.
Since:
1.0.0
Author:
Rossen Stoyanchev, Brian Clozel
  • Constructor Details

    • GraphQlHttpHandler

      public GraphQlHttpHandler(WebGraphQlHandler graphQlHandler)
      Create a new instance.
      Parameters:
      graphQlHandler - common handler for GraphQL over HTTP requests
  • Method Details

    • handleRequest

      public reactor.core.publisher.Mono<ServerResponse> handleRequest(ServerRequest serverRequest)
      Handle GraphQL requests over HTTP.
      Parameters:
      serverRequest - the incoming HTTP request
      Returns:
      the HTTP response