Merge branch '1.0.x'

This commit is contained in:
Andy Wilkinson
2015-12-03 17:51:16 +00:00

View File

@@ -84,4 +84,15 @@ from the request or response.
`replacePattern` on `Preprocessors` provides a general purpose mechanism for
replacing content in a request or response. Any occurrences of a regular expression are
replaced.
replaced.
[[customizing-requests-and-responses-preprocessors-writing-your-own]]
==== Writing your own preprocessor
If one of the built-in preprocessors does not meet your needs, you can write your own by
implementing the `OperationPreprocessor` interface. You can then use your custom
preprocessor in exactly the same way as any of the built-in preprocessors.
If you only want to modify the content (body) of a request or response, consider
implementing the `ContentModifier` interface and using it with the built-in
`ContentModifyingOperationPreprocessor`.