rest-assured/src/main/java/io/restassured/RestAssured.java
public static void replaceFiltersWith(Filter filter, Filter... additionalFilters) {
        Validate.notNull(filter, "Filter cannot be null");
        RestAssured.filters.clear();
        filters(filter, additionalFilters);
    }
public static void replaceFiltersWith(Filter filter, Filter... additionalFilters) {
        Validate.notNull(filter, "Filter cannot be null");
        RestAssured.filters.clear();
        filters(filter, additionalFilters);
    }
Sets the default filters to apply to each request.

@param filter            The filter to set
@param additionalFilters An optional array of additional filters to set