GraphQLHandler

A @see \io\vertx\jphp\ext\web\Route handler for GraphQL requests.

package

Default

Methods

__construct

__construct() 

Customize the HTTP headers to add to GraphQL requests sent by the GraphiQL user interface.

graphiQLRequestHeaders( $arg0) : $this

The result will be applied on top of the fixed set of headers specified in @see \io\vertx\jphp\ext\web\handler\graphql\GraphiQLOptions.

This can be useful if, for example, the server is protected by authentication.

Arguments

$arg0

callable

Response

$this

a reference to this, so the API can be used fluently

Something has happened, so handle it.

handle( $arg0) : void

Arguments

$arg0

RoutingContext

Customize the query context object.

queryContext( $arg0) : $this

The provided factory method will be invoked for each incoming GraphQL request.

Arguments

$arg0

callable

Response

$this

a reference to this, so the API can be used fluently