On Mon, 26 Apr 2021 17:27:13 GMT, Julia Boes <[email protected]> wrote:
>> Add two static factory methods to com.sun.net.httpserver.Filter that
>> facilitate the creation of pre- and post-processing Filters:
>>
>> `public static Filter beforeResponse(String description,
>> Consumer<HttpExchange> filterImpl) {}`
>> `public static Filter afterResponse(String description,
>> Consumer<HttpExchange> filterImpl) {}`
>
> Julia Boes has updated the pull request incrementally with one additional
> commit since the last revision:
>
> fix empty response body
Thanks for your comments, Daniel. I incorporated them and tightened the specs
and examples.
API docs updated in place:
http://cr.openjdk.java.net/~jboes/webrevs/8265123/api/jdk.httpserver/com/sun/net/httpserver/Filter.html
-------------
PR: https://git.openjdk.java.net/jdk/pull/3468