persistentConnection property

  1. @override
bool persistentConnection
override

Whether the connection is persistent (keep-alive).

Implementation

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

Whether the connection is persistent (keep-alive).

Implementation

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