Add support for removing headers that match a Pattern

A new preprocessor method `removeMatchingHeaders` has been introduced
which takes one or more regular expression patterns (as Strings). Any
header that matches a pattern is removed.

Closes gh-195
This commit is contained in:
Roland Huß
2016-02-04 11:55:03 +01:00
committed by Andy Wilkinson
parent a9c9bad15e
commit 1897ec54f2
4 changed files with 80 additions and 11 deletions

View File

@@ -105,6 +105,8 @@ different replacement can also be specified if you wish.
`removeHeaders` on `Preprocessors` removes any occurrences of the named headers
from the request or response.
`removeMatchingHeaders` on `Preprocessors` applies the given patterns on every header and
removes them when matching.
[[customizing-requests-and-responses-preprocessors-replace-patterns]]