public interface GraphiQLHandler extends Handler<RoutingContext>
Route
handler for GraphiQL resources.Modifier and Type | Method and Description |
---|---|
static GraphiQLHandler |
create()
Create a new
GraphiQLHandler . |
static GraphiQLHandler |
create(GraphiQLHandlerOptions options)
Create a new
GraphiQLHandler . |
GraphiQLHandler |
graphiQLRequestHeaders(java.util.function.Function<RoutingContext,MultiMap> factory)
Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.
|
static GraphiQLHandler create()
GraphiQLHandler
.
The handler will be configured with default options
.
static GraphiQLHandler create(GraphiQLHandlerOptions options)
GraphiQLHandler
.
The handler will be configured with the given options
.
options
- options for configuring the GraphiQLHandler
GraphiQLHandler graphiQLRequestHeaders(java.util.function.Function<RoutingContext,MultiMap> factory)
GraphiQLHandlerOptions.getHeaders()
.
This can be useful if, for example, the server is protected by authentication.
Copyright © 2021 Eclipse. All rights reserved.