Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dns resolver type method on webclient builder #4838

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions dependencies/pom.xml
Expand Up @@ -382,11 +382,6 @@
<artifactId>netty-buffer</artifactId>
<version>${version.lib.netty}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns</artifactId>
<version>${version.lib.netty}</version>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>yasson</artifactId>
Expand Down
Expand Up @@ -403,6 +403,18 @@ public Builder validateHeaders(boolean validate) {
return this;
}

/**
* Set which type of DNS resolver should be used.
*
* @param dnsResolverType type of the DNS resolver to be used
* @return updated builder instance
*/
public Builder dnsResolverType(DnsResolverType dnsResolverType) {
configuration.dnsResolverType(dnsResolverType);
return this;
}


WebClientConfiguration configuration() {
configuration.clientServices(services());
return configuration.build();
Expand Down