| Package | Description |
|---|---|
| org.springframework.graphql.web |
Support for executing GraphQL requests over the Web, including handlers for HTTP and
WebSocket.
|
| Modifier and Type | Method and Description |
|---|---|
WebOutput.Builder |
WebOutput.Builder.data(java.lang.Object data)
Set the
data of the GraphQL execution result. |
WebOutput.Builder |
WebOutput.Builder.errors(java.util.List<graphql.GraphQLError> errors)
Set the
errors of the GraphQL execution
result. |
WebOutput.Builder |
WebOutput.Builder.extensions(java.util.Map<java.lang.Object,java.lang.Object> extensions)
Set the
extensions of the GraphQL
execution result. |
WebOutput.Builder |
WebOutput.Builder.responseHeader(java.lang.String name,
java.lang.String... values)
Add a custom header to be set on the HTTP response.
|
WebOutput.Builder |
WebOutput.Builder.responseHeaders(java.util.function.Consumer<org.springframework.http.HttpHeaders> consumer)
Consume and update the headers to be set on the HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
WebOutput |
WebOutput.transform(java.util.function.Consumer<WebOutput.Builder> consumer)
Transform this
WebOutput instance through a WebOutput.Builder and return a
new instance with the modified values. |