private Pair<HttpResponse, HttpRequestImpl> responseFilters(HttpResponse response) throws IOException { for (HeaderFilter filter : filters) { HttpRequestImpl newreq = filter.response((HttpResponseImpl) response); if (newreq != null) { return pair(null, newreq); } } return pair(response, null); }
private void requestFilters(HttpRequestImpl r) throws IOException { for (HeaderFilter filter : filters) { filter.request(r); } }
/** * @param header the name of a http header (case insensitive) * @return true if the header should be filtered. */ protected boolean isHeaderFiltered(final String header) { return headerFilter.isFiltered(header); }