Package io.servicetalk.http.api
Interface StreamingHttpServiceFilterFactory
-
- All Known Implementing Classes:
BasicAuthHttpServiceFilter
,ContentCodingHttpServiceFilter
,RequestTargetDecoderHttpServiceFilter
,RequestTargetEncoderHttpServiceFilter
,TracingHttpServiceFilter
- 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 StreamingHttpServiceFilterFactory
A factory forStreamingHttpServiceFilter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StreamingHttpServiceFilterFactory
append(StreamingHttpServiceFilterFactory before)
Returns a composed function that first applies thebefore
function to its input, and then applies this function to the result.StreamingHttpServiceFilter
create(StreamingHttpService service)
Create aStreamingHttpServiceFilter
using the providedStreamingHttpService
.
-
-
-
Method Detail
-
create
StreamingHttpServiceFilter create(StreamingHttpService service)
Create aStreamingHttpServiceFilter
using the providedStreamingHttpService
.- Parameters:
service
-StreamingHttpService
to filter- Returns:
StreamingHttpServiceFilter
using the providedStreamingHttpService
.
-
append
default StreamingHttpServiceFilterFactory append(StreamingHttpServiceFilterFactory 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:
builder.append(filter1).append(filter2).append(filter3)
accepting a request by a service wrapped by this filter chain, the order of invocation of these filters will be:filter1 => filter2 => filter3 => service
- 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
-
-