Package io.servicetalk.http.api
Interface StreamingHttpClientFilterFactory
-
- All Known Subinterfaces:
ConditionalFilterFactory.FilterFactory
- All Known Implementing Classes:
ConditionalFilterFactory
,ContentCodingHttpRequesterFilter
,RedirectingHttpRequesterFilter
,RequestTargetEncoderHttpRequesterFilter
,RetryingHttpRequesterFilter
,TimeoutHttpRequesterFilter
,TracingHttpRequesterFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StreamingHttpClientFilterFactory
A factory forStreamingHttpClientFilter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StreamingHttpClientFilterFactory
append(StreamingHttpClientFilterFactory before)
Returns a composed function that first applies thebefore
function to its input, and then applies this function to the result.default <U> MultiAddressHttpClientFilterFactory<U>
asMultiAddressClientFilter()
Returns aMultiAddressHttpClientFilterFactory
that adapts from aStreamingHttpClientFilterFactory
.StreamingHttpClientFilter
create(FilterableStreamingHttpClient client)
Creates aStreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.
-
-
-
Method Detail
-
create
StreamingHttpClientFilter create(FilterableStreamingHttpClient client)
Creates aStreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.- Parameters:
client
-FilterableStreamingHttpClient
to filter- Returns:
StreamingHttpClientFilter
using the providedStreamingHttpClientFilter
.
-
append
default StreamingHttpClientFilterFactory append(StreamingHttpClientFilterFactory before)
Returns a composed function that first applies thebefore
function to its input, and then applies this function to the result.The order of execution of these filters are in order of append. If 3 filters are added as follows:
filter1.append(filter2).append(filter3)
making a request to a client wrapped by this filter chain the order of invocation of these filters will be:filter1 => filter2 => filter3 => client
- Parameters:
before
- the function to apply before this function is applied- Returns:
- a composed function that first applies the
before
function and then applies this function
-
asMultiAddressClientFilter
default <U> MultiAddressHttpClientFilterFactory<U> asMultiAddressClientFilter()
Returns aMultiAddressHttpClientFilterFactory
that adapts from aStreamingHttpClientFilterFactory
.- Type Parameters:
U
- the type of address before resolution (unresolved address).- Returns:
- a
MultiAddressHttpClientFilterFactory
function
-
-