A typical collection of Filters for HTTP services. Ordering of Filters is important.
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.
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.