示例#1
0
 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);
 }
示例#2
0
 private void requestFilters(HttpRequestImpl r) throws IOException {
   for (HeaderFilter filter : filters) {
     filter.request(r);
   }
 }
示例#3
0
 /**
  * @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);
 }