chunkedTransferEncoding property
Whether the connection uses chunked transfer encoding.
Reflects and modifies the value of the transferEncodingHeader header.
Implementation
@override
bool get chunkedTransferEncoding {
return value(io.HttpHeaders.transferEncodingHeader) == 'chunked';
}
Whether the connection uses chunked transfer encoding.
Reflects and modifies the value of the transferEncodingHeader header.
Implementation
set chunkedTransferEncoding(bool value) {
if (value) {
set(io.HttpHeaders.transferEncodingHeader, 'chunked');
} else {
_headers.remove(io.HttpHeaders.transferEncodingHeader);
}
}