public void setAccept(List<String> accepts) {
        this.accepts = Collections.unmodifiableList(accepts);
        setHeaders(Collections.singletonMap("accept", this.accepts));
    }
public void setAccept ( List < String > accepts ) { this . accepts = Collections . unmodifiableList ( accepts ) ; setHeaders ( Collections . singletonMap ( "accept" , this . accepts ) ) ; }
A media type that should be present in the accept header for a request to
match. Optional (if null then all
values match).

@param accepts the accept header value to set