Package io.servicetalk.http.api
Interface FilterableStreamingHttpClient
- All Superinterfaces:
AsyncCloseable,AutoCloseable,GracefulAutoCloseable,ListenableAsyncCloseable,StreamingHttpRequester,StreamingHttpRequestFactory
- All Known Subinterfaces:
StreamingHttpClient
- All Known Implementing Classes:
StreamingHttpClientFilter
A
StreamingHttpClient that supports filtering.-
Method Summary
Modifier and TypeMethodDescriptionSingle<? extends FilterableReservedStreamingHttpConnection>reserveConnection(HttpRequestMetaData metaData) Reserve aStreamingHttpConnectionbased on providedHttpRequestMetaData.Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefullyMethods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose, onClosingMethods inherited from interface io.servicetalk.http.api.StreamingHttpRequester
close, closeGracefully, executionContext, httpResponseFactory, request
-
Method Details
-
reserveConnection
Single<? extends FilterableReservedStreamingHttpConnection> reserveConnection(HttpRequestMetaData metaData) Reserve aStreamingHttpConnectionbased on providedHttpRequestMetaData.- Parameters:
metaData- Allows the underlying layers to know whatStreamingHttpConnections are valid to reserve for futurerequestswith the sameHttpRequestMetaData. For example this may provide some insight into shard or other info.- Returns:
- a
Singlethat provides aFilterableReservedStreamingHttpConnectionupon completion.
-