Package io.vertx.ext.web.handler.graphql
Interface GraphiQLHandlerBuilder
-
public interface GraphiQLHandlerBuilderA builder forGraphiQLHandlerinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphiQLHandlerBuilderaddingHeaders(Function<RoutingContext,MultiMap> factory)Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.GraphiQLHandlerbuild()GraphiQLHandlerBuilderwith(GraphiQLHandlerOptions options)Change theGraphiQLHandlerOptionsto use.
-
-
-
Method Detail
-
with
GraphiQLHandlerBuilder with(GraphiQLHandlerOptions options)
Change theGraphiQLHandlerOptionsto use.- Returns:
- a reference to this, so the API can be used fluently
-
addingHeaders
GraphiQLHandlerBuilder addingHeaders(Function<RoutingContext,MultiMap> factory)
Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface. The result will be applied on top of the fixed set of headers specified inGraphiQLHandlerOptions.getHeaders().This can be useful if, for example, the server is protected by authentication.
- Returns:
- a reference to this, so the API can be used fluently
-
build
GraphiQLHandler build()
- Returns:
- a new instance of
GraphiQLHandler
-
-