A typical collection of Filters for HTTP services. Ordering of Filters is important.
This is meant to be a convenience utility and does not serve all cases. It is primarily
meant to be illustrative of a recommended order of organization for the given filters which
can be chained together manually but which are collected here for the many cases where
you only need the functionality implemented here.
Annotations
@Singleton()
Note
HttpNackFilter converts Finagle's nacks into HttpNackExceptions. This Filter MUST
come "below" the ExceptionMappingFilter otherwise the HttpNackExceptions will not be
properly converted into a meaningful HTTP response.
,
Filter ordering is determined by the implementation of MergedFilter and can be
read as Requests enter the top Filter and progress down, Responses traverse in the
opposite manner from the bottom up.
A typical collection of Filters for HTTP services. Ordering of Filters is important. This is meant to be a convenience utility and does not serve all cases. It is primarily meant to be illustrative of a recommended order of organization for the given filters which can be chained together manually but which are collected here for the many cases where you only need the functionality implemented here.
HttpNackFilter converts Finagle's nacks into
,HttpNackExceptions
. This Filter MUST come "below" the ExceptionMappingFilter otherwise theHttpNackExceptions
will not be properly converted into a meaningful HTTP response.Filter ordering is determined by the implementation of MergedFilter and can be read as Requests enter the top Filter and progress down, Responses traverse in the opposite manner from the bottom up.