Polish "Provide a preprocessor for modifying request and response headers"

See gh-584
This commit is contained in:
Andy Wilkinson
2022-05-12 14:27:49 +01:00
parent 768a43a61e
commit 36418f47d7
6 changed files with 102 additions and 270 deletions

View File

@@ -108,12 +108,10 @@ You can also specify a different replacement if you wish.
[[customizing-requests-and-responses-preprocessors-remove-headers]]
==== Removing Headers
[[customizing-requests-and-responses-preprocessors-modify-headers]]
==== Modifying Headers
`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` removes any headers from the request or response where the name matches any of the given regular expression patterns.
You can use `modifyHeaders` on `Preprocessors` to add, set, and remove request or response headers.
@@ -125,13 +123,6 @@ Any occurrences that match a regular expression are replaced.
[[customizing-requests-and-responses-preprocessors-modify-headers]]
==== Modifying Headers
You can use `modifyHeaders` on `Preprocessors` to add, set, and remove request or response headers.
[[customizing-requests-and-responses-preprocessors-modify-request-parameters]]
==== Modifying Request Parameters