/** * Add filter for HTTP response, each filter get called after each request has been proxied * * @param httpRequest the request to match against for this filter * @param filter the filter that is executed after this request has been proxied */ public ProxyServlet withFilter(HttpRequest httpRequest, ResponseFilter filter) { filters.withFilter(httpRequest, filter); return this; }
public ProxyServlet() { filters.withFilter(new HttpRequest(), new HopByHopHeaderFilter()); filters.withFilter(new HttpRequest(), requestLogFilter); filters.withFilter(new HttpRequest(), requestResponseLogFilter); }