accept property

void accept=(List<ContentType> contentTypes)

Sets the Accept header of this request.

Implementation

set accept(List<ContentType> contentTypes) {
  headers[HttpHeaders.acceptHeader] =
      contentTypes.map((ct) => ct.toString()).join(",");
}