OneTime is a TypeAgnostic filter that can be materialized exactly once.
OneTime is a TypeAgnostic filter that can be materialized exactly once. This provides a simple way to create the most commonly used kind of TypeAgnostic filters while ensuring that the apply method is not shared.
TypeAgnostic filters are like SimpleFilters but they leave the Rep and Req types unspecified
until toFilter
is called.
Chooses a filter to apply based on incoming requests.
Chooses a filter to apply based on incoming requests. If the given partial function is not defined at the request, then the request goes directly to the next service.
a partial function mapping requests to Filters that should be applied
Returns a Filter that does nothing beyond passing inputs through to the Service.
A pass-through TypeAgnostic that in turn uses a Filter.Identity for its implementation.