public class GraphiQLHandlerImpl extends Object implements GraphiQLHandler
| Constructor and Description |
|---|
GraphiQLHandlerImpl(GraphiQLHandlerOptions options) |
| Modifier and Type | Method and Description |
|---|---|
GraphiQLHandler |
graphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)
Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.
|
void |
handle(RoutingContext rc)
Something has happened, so handle it.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic GraphiQLHandlerImpl(GraphiQLHandlerOptions options)
public GraphiQLHandler graphiQLRequestHeaders(Function<RoutingContext,MultiMap> factory)
GraphiQLHandlerGraphiQLHandlerOptions.getHeaders().
This can be useful if, for example, the server is protected by authentication.
graphiQLRequestHeaders in interface GraphiQLHandlerpublic void handle(RoutingContext rc)
Handlerhandle in interface Handler<RoutingContext>rc - the event to handleCopyright © 2020. All rights reserved.