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:
committed by
Andy Wilkinson
parent
a9c9bad15e
commit
1897ec54f2
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user