Package io.micronaut.http.client
Interface StreamingHttpClientFactory
- All Known Implementing Classes:
NettyHttpClientFactory
public interface StreamingHttpClientFactory
A factory to create Streaming HTTP clients.
- Since:
- 3.0.0
- Author:
- James Kleeh, Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescriptionCreate a newStreamingHttpClient
.createStreamingClient
(@Nullable URL url, @NonNull HttpClientConfiguration configuration) Create a newStreamingHttpClient
with the specified configuration.
-
Method Details
-
createStreamingClient
Create a newStreamingHttpClient
. Note that this method should only be used outside the context of an application. Within Micronaut useInject
to inject a client instead- Parameters:
url
- The base URL- Returns:
- The client
-
createStreamingClient
@NonNull @NonNull StreamingHttpClient createStreamingClient(@Nullable @Nullable URL url, @NonNull @NonNull HttpClientConfiguration configuration) Create a newStreamingHttpClient
with the specified configuration. Note that this method should only be used outside 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
-