accept property
Adds Accept header to requests from this agent.
Implementation
set accept(List<ContentType> contentTypes) {
headers[HttpHeaders.acceptHeader] =
contentTypes.map((ct) => ct.toString()).join(",");
}
Adds Accept header to requests from this agent.
set accept(List<ContentType> contentTypes) {
headers[HttpHeaders.acceptHeader] =
contentTypes.map((ct) => ct.toString()).join(",");
}