persistentConnection property

  1. @override
bool get persistentConnection
override

Whether the connection is persistent (keep-alive).

Implementation

@override
bool get persistentConnection {
  return value(io.HttpHeaders.connectionHeader) == 'keep-alive';
}
  1. @override
set persistentConnection (bool value)
override

Whether the connection is persistent (keep-alive).

Implementation

@override
set persistentConnection(bool value) {
  set(io.HttpHeaders.connectionHeader, value ? 'keep-alive' : 'close');
}