accept property
Sets the Accept header of this request.
Implementation
set accept(List<ContentType> contentTypes) {
headers[HttpHeaders.acceptHeader] =
contentTypes.map((ct) => ct.toString()).join(",");
}
Sets the Accept header of this request.
set accept(List<ContentType> contentTypes) {
headers[HttpHeaders.acceptHeader] =
contentTypes.map((ct) => ct.toString()).join(",");
}