Package io.micronaut.http.client
Interface ProxyHttpClientFactory
-
public interface ProxyHttpClientFactoryA factory to create Proxy HTTP clients.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProxyHttpClientcreateProxyClient(java.net.URL url)Create a newProxyHttpClient.ProxyHttpClientcreateProxyClient(java.net.URL url, HttpClientConfiguration configuration)Create a newProxyHttpClientwith the specified configuration.
-
-
-
Method Detail
-
createProxyClient
@NonNull ProxyHttpClient createProxyClient(@Nullable java.net.URL url)
Create a newProxyHttpClient. Note that this method should only be used outside of the context of an application. Within Micronaut useInjectto inject a client instead- Parameters:
url- The base URL- Returns:
- The client
-
createProxyClient
@NonNull ProxyHttpClient createProxyClient(@Nullable java.net.URL url, @NonNull HttpClientConfiguration configuration)
Create a newProxyHttpClientwith the specified configuration. Note that this method should only be used outside of the context of an application. Within Micronaut useInjectto inject a client instead- Parameters:
url- The base URLconfiguration- the client configuration- Returns:
- The client
- Since:
- 2.2.0
-
-