tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Teppei Yamada <>
Subject Implementing mod_headers for response in Tomcat7
Date Sun, 01 Apr 2012 09:15:07 GMT

I wanted to write something similar to apache httpd's mod_headers so I
read through Tomcat7.0.26 source code.
Then I realized that that could not be achieved without modifying coyote's
That can never be done by Valve because some HTTP headers are added just
in (or SessionCookie is right before) prepareResponse function and it
immediately writes headers to OutputBuffer and set committed.

So I propose inserting some code in prepareResponse.
Is is acceptable?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message