public static interface WebGraphQlClient.Builder<B extends WebGraphQlClient.Builder<B>> extends GraphQlClient.Builder<B>
Modifier and Type | Method and Description |
---|---|
WebGraphQlClient |
build()
Build a
WebGraphQlClient instance. |
B |
codecConfigurer(Consumer<CodecConfigurer> codecsConsumer)
Configure the underlying
CodecConfigurer to use for all JSON
encoding and decoding needs. |
B |
header(String name,
String... values)
Add the given header to HTTP requests or to the WebSocket handshake request.
|
B |
headers(Consumer<HttpHeaders> headersConsumer)
Variant of
header(String, String...) that provides access
to the underlying headers to inspect or modify directly. |
B |
url(String url)
Set the GraphQL endpoint URL as a String.
|
B |
url(URI url)
Set the GraphQL endpoint URL.
|
documentSource, interceptor, interceptors
B url(String url)
url
- the url to send HTTP requests to or connect over WebSocketB url(URI url)
url
- the url to send HTTP requests to or connect over WebSocketB header(String name, String... values)
name
- the header namevalues
- the header valuesB headers(Consumer<HttpHeaders> headersConsumer)
header(String, String...)
that provides access
to the underlying headers to inspect or modify directly.headersConsumer
- a function that consumes the HttpHeaders
B codecConfigurer(Consumer<CodecConfigurer> codecsConsumer)
CodecConfigurer
to use for all JSON
encoding and decoding needs.WebGraphQlClient build()
WebGraphQlClient
instance.build
in interface GraphQlClient.Builder<B extends WebGraphQlClient.Builder<B>>