rest-assured/src/main/java/io/restassured/builder/MultiPartSpecBuilder.java
public MultiPartSpecBuilder headers(Map<String, String> headers) {
        if (headers == null) {
            this.headers = new HashMap<String, String>();
        } else {
            this.headers = new HashMap<String, String>(headers);
        }
        return this;
    }
public MultiPartSpecBuilder headers(Map<String, String> headers) {
        if (headers == null) {
            this.headers = new HashMap<String, String>();
        } else {
            this.headers = new HashMap<String, String>(headers);
        }
        return this;
    }
Set the headers for this multipart specification (replaces previous headers)

@param headers The headers as a map
@return An instance of MultiPartSpecBuilder