Polish pattern-based header removal contribution

Closes gh-191
This commit is contained in:
Andy Wilkinson
2016-02-05 09:32:14 +00:00
parent 1897ec54f2
commit 1131c9fa6e
7 changed files with 171 additions and 63 deletions

View File

@@ -102,11 +102,11 @@ different replacement can also be specified if you wish.
[[customizing-requests-and-responses-preprocessors-remove-headers]]
==== Removing headers
`removeHeaders` on `Preprocessors` removes any occurrences of the named headers
from the request or response.
`removeHeaders` on `Preprocessors` removes any headers from the request or response where
the name is equal to any of the given header names.
`removeMatchingHeaders` on `Preprocessors` applies the given patterns on every header and
removes them when matching.
`removeMatchingHeaders` on `Preprocessors` removes any headers from the request or
response where the name matches any of the given regular expression patterns.
[[customizing-requests-and-responses-preprocessors-replace-patterns]]