Uses of Class
org.springframework.restdocs.operation.preprocess.HeadersModifyingOperationPreprocessor
Package
Description
Support for preprocessing an operation prior to it being documented.
-
Uses of HeadersModifyingOperationPreprocessor in org.springframework.restdocs.operation.preprocess
Modifier and TypeMethodDescriptionAdds a header with the givenname
andvalue
.Preprocessors.modifyHeaders()
Returns aHeadersModifyingOperationPreprocessor
that can then be configured to modify the headers of the request or response.Removes the header with the givenname
.Removes the givenvalue
from the header with the givenname
.HeadersModifyingOperationPreprocessor.removeMatching
(String namePattern) Remove headers that match the givennamePattern
regular expression.Sets the header with the givenname
to have the givenvalues
.