public interface GraphiQLHandler extends io.vertx.core.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(Function<RoutingContext,io.vertx.core.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(Function<RoutingContext,io.vertx.core.MultiMap> factory)
GraphiQLHandlerOptions.getHeaders()
.
This can be useful if, for example, the server is protected by authentication.
Copyright © 2020 Eclipse. All rights reserved.