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(Object data)
Set the
data of the GraphQL execution result. |
WebOutput.Builder |
WebOutput.Builder.errors(List<GraphQLError> errors)
Set the
errors of the GraphQL execution
result. |
WebOutput.Builder |
WebOutput.Builder.extensions(Map<Object,Object> extensions)
Set the
extensions of the GraphQL
execution result. |
WebOutput.Builder |
WebOutput.Builder.responseHeader(String name,
String... values)
Add a custom header to be set on the HTTP response.
|
WebOutput.Builder |
WebOutput.Builder.responseHeaders(Consumer<HttpHeaders> consumer)
Consume and update the headers to be set on the HTTP response.
|
Modifier and Type | Method and Description |
---|---|
WebOutput |
WebOutput.transform(Consumer<WebOutput.Builder> consumer)
Transform this
WebOutput instance through a WebOutput.Builder and return a
new instance with the modified values. |