/** * Returns an {@code OperationPreprocessor} that will remove any header from the * request or response with a name that is equal to one of the given * {@code headersToRemove}. * @param headerNames the header names * @return the preprocessor * @see String#equals(Object) */ public static OperationPreprocessor removeHeaders(String... headerNames) { return new HeaderRemovingOperationPreprocessor( new ExactMatchHeaderFilter(headerNames)); }