All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.kotlin.ext.web.handler.graphql.GraphiQLHandlerOptions.kt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
/*
 * Copyright 2019 Red Hat, Inc.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Apache License v2.0 which accompanies this distribution.
 *
 * The Eclipse Public License is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * The Apache License v2.0 is available at
 * http://www.opensource.org/licenses/apache2.0.php
 *
 * You may elect to redistribute this code under either of these licenses.
 */
package io.vertx.kotlin.ext.web.handler.graphql

import io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions

/**
 * A function providing a DSL for building [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions] objects.
 *
 * Embedded GraphiQL user interface options.
 *
 * @param enabled  Whether the GraphiQL development tool should be enabled. Defaults to false.
 * @param graphQLUri  Set the GraphQL HTTP endpoint URI. Defaults to [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions].
 * @param graphQLWSEnabled  Whether the GraphQLWS transport should be enabled. Defaults to true.
 * @param graphWSQLUri  Set the GraphQLWS endpoint URI. Defaults to [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions].
 * @param headers  A fixed set of HTTP headers to add to GraphiQL requests. Defaults to null.
 * @param httpEnabled  Whether the HTTP transport should be enabled. Defaults to true.
 * @param query  Initial value of the query area in the GraphiQL user interface. Defaults to null.
 * @param variables  Initial value of the variables area in the GraphiQL user interface. Defaults to null.
 * @param wsConnectionParams  Initial GraphQLWS connection params. Defaults to null.
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions original] using Vert.x codegen. */ fun graphiQLHandlerOptionsOf( enabled: Boolean? = null, graphQLUri: String? = null, graphQLWSEnabled: Boolean? = null, graphWSQLUri: String? = null, headers: Map? = null, httpEnabled: Boolean? = null, query: String? = null, variables: io.vertx.core.json.JsonObject? = null, wsConnectionParams: io.vertx.core.json.JsonObject? = null): GraphiQLHandlerOptions = io.vertx.ext.web.handler.graphql.GraphiQLHandlerOptions().apply { if (enabled != null) { this.setEnabled(enabled) } if (graphQLUri != null) { this.setGraphQLUri(graphQLUri) } if (graphQLWSEnabled != null) { this.setGraphQLWSEnabled(graphQLWSEnabled) } if (graphWSQLUri != null) { this.setGraphWSQLUri(graphWSQLUri) } if (headers != null) { this.setHeaders(headers) } if (httpEnabled != null) { this.setHttpEnabled(httpEnabled) } if (query != null) { this.setQuery(query) } if (variables != null) { this.setVariables(variables) } if (wsConnectionParams != null) { this.setWsConnectionParams(wsConnectionParams) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy