Package io.micronaut.http.client.netty
Class DefaultHttpClientBuilder
java.lang.Object
io.micronaut.http.client.netty.DefaultHttpClientBuilder
While
DefaultHttpClient
is internal API, there are a few uses outside micronaut-core
that use it directly, in particular micronaut-oracle-cloud. This builder acts as API for those
users.
If you need to make a method of this builder public, please document the module that uses it.
- Since:
- 4.7.0
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the final HTTP client.configuration
(@NonNull HttpClientConfiguration configuration) Set the configuration.nettyClientSslBuilder
(@NonNull ClientSslBuilder nettyClientSslBuilder) The netty SSL context builder.Set the optional URI for this client to use as the root.
-
Method Details
-
uri
Set the optional URI for this client to use as the root.- Parameters:
uri
- The URI- Returns:
- This builder
-
configuration
@NonNull public @NonNull DefaultHttpClientBuilder configuration(@NonNull @NonNull HttpClientConfiguration configuration) Set the configuration.- Parameters:
configuration
- The client configuration- Returns:
- This builder
-
nettyClientSslBuilder
@NonNull public @NonNull DefaultHttpClientBuilder nettyClientSslBuilder(@NonNull @NonNull ClientSslBuilder nettyClientSslBuilder) The netty SSL context builder. Used by the micronaut-oracle-cloud OKE workload identity client.- Parameters:
nettyClientSslBuilder
- The SSL context builder- Returns:
- This builder
-
build
Build the final HTTP client. This method may only be called once.- Returns:
- The client
-