Interface RxProxyHttpClient
- All Superinterfaces:
io.micronaut.http.client.ProxyHttpClient
public interface RxProxyHttpClient
extends io.micronaut.http.client.ProxyHttpClient
Extended version of
ProxyHttpClient
for RxJava 2.- Since:
- 2.0.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionstatic RxProxyHttpClient
Create a newRxProxyHttpClient
.static RxProxyHttpClient
Create a newProxyHttpClient
with the specified configuration.io.reactivex.Flowable<io.micronaut.http.MutableHttpResponse<?>>
proxy
(@NonNull io.micronaut.http.HttpRequest<?> request) Methods inherited from interface io.micronaut.http.client.ProxyHttpClient
proxy
-
Method Details
-
proxy
io.reactivex.Flowable<io.micronaut.http.MutableHttpResponse<?>> proxy(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request) - Specified by:
proxy
in interfaceio.micronaut.http.client.ProxyHttpClient
-
create
Create a newRxProxyHttpClient
. Note that this method should only be used outside of the context of a Micronaut application. The returnedRxProxyHttpClient
is not subject to dependency injection. The creator is responsible for closing the client to avoid leaking connections. Within a Micronaut application useInject
to inject a client instead.- Parameters:
url
- The base URL- Returns:
- The client
- Since:
- 2.1.0
-
create
static RxProxyHttpClient create(@Nullable @Nullable URL url, @NonNull @NonNull io.micronaut.http.client.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.1.0
-