public static interface WebGraphQlTester.WebRequestSpec extends GraphQlTester.RequestSpec<WebGraphQlTester.WebRequestSpec>
GraphQlTester.RequestSpec
with further input options
applicable to Web requests.Modifier and Type | Method and Description |
---|---|
WebGraphQlTester.WebRequestSpec |
header(String headerName,
String... headerValues)
Add the given, single header value under the given name.
|
WebGraphQlTester.WebRequestSpec |
headers(Consumer<HttpHeaders> headersConsumer)
Manipulate the request's headers with the given consumer.
|
operationName, variable
execute, executeAndVerify, executeSubscription
WebGraphQlTester.WebRequestSpec header(String headerName, String... headerValues)
headerName
- the header nameheaderValues
- the header value(s)WebGraphQlTester.WebRequestSpec headers(Consumer<HttpHeaders> headersConsumer)
HttpHeaders
methods.headersConsumer
- a function that consumes the HttpHeaders