Interface GraphiQLHandlerBuilder
public interface GraphiQLHandlerBuilder
A builder for
GraphiQLHandler instances.-
Method Summary
Modifier and TypeMethodDescriptionaddingHeaders(Function<RoutingContext, MultiMap> factory) Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.build()with(GraphiQLHandlerOptions options) Change theGraphiQLHandlerOptionsto use.
-
Method Details
-
with
Change theGraphiQLHandlerOptionsto use.- Returns:
- a reference to this, so the API can be used fluently
-
addingHeaders
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
-