void accept=(List<ContentType> contentTypes)

Sets the Accept header of this request.

Source

set accept(List<ContentType> contentTypes) {
  addHeader(
      HttpHeaders.ACCEPT, contentTypes.map((ct) => ct.toString()).join(","));
}