code: public void setAccept(List<String> accepts) {
          this.accepts = Collections.unmodifiableList(accepts);
          setHeaders(Collections.singletonMap("accept", this.accepts));
      }
docs: 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