accept property

void accept=(List<ContentType> contentTypes)

Adds Accept header to requests from this agent.

Implementation

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