persistentConnection property
Whether the connection is persistent (keep-alive).
Implementation
@override
bool get persistentConnection {
return value(io.HttpHeaders.connectionHeader) == 'keep-alive';
}
Whether the connection is persistent (keep-alive).
Implementation
set persistentConnection(bool value) {
set(io.HttpHeaders.connectionHeader, value ? 'keep-alive' : 'close');
}