Package io.micronaut.http.client
Interface ProxyHttpClientFactory
- All Known Implementing Classes:
NettyHttpClientFactory
public interface ProxyHttpClientFactory
A factory to create Proxy HTTP clients.
- Since:
- 3.0.0
- Author:
- James Kleeh, Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newProxyHttpClient
.createProxyClient
(@Nullable URL url, @NonNull HttpClientConfiguration configuration) Create a newProxyHttpClient
with the specified configuration.
-
Method Details
-
createProxyClient
Create a newProxyHttpClient
. Note that this method should only be used outside of the context of an application. Within Micronaut useInject
to inject a client instead- Parameters:
url
- The base URL- Returns:
- The client
-
createProxyClient
@NonNull @NonNull ProxyHttpClient createProxyClient(@Nullable @Nullable URL url, @NonNull @NonNull HttpClientConfiguration configuration) Create a newProxyHttpClient
with the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut useInject
to inject a client instead- Parameters:
url
- The base URLconfiguration
- the client configuration- Returns:
- The client
- Since:
- 2.2.0
-