On Wed, Apr 28, 2021 at 9:07 AM Mark Thomas <ma...@apache.org> wrote:

> I'm wondering if there is merit in a Valve-like mechanism for Coyote.
> Name TBD but would look something like:
> - callbacks
>    - after request headers are parsed / before the request is prepared
>    - after the request is prepared
>    - before response headers are prepared
>    - after response headers are prepared / before they are written
> - allow multiple "Valves" to be configured
> - provide a "default" that doesn't require explicit config
> - explicit config can add custom "valves", the default "valve" or any
>    combination
>

I thought about it quite a bit in the past, an interceptor [resurrecting
the old name] could be a solution to a lot of problems here. So why not.

Rémy


>
> I'm leaning towards the latter approach as it has much greater
> flexibility and I can see different users having subtly different
> requirements and this avoids an explosion of configuration attributes on
> a single class.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>

Reply via email to