expires property
DateTime?
get
expires
The date and time after which the response's data should be considered stale.
This is parsed from the Expires header in headers
. If headers
doesn't
have an Expires header, this will be null
.
Implementation
DateTime? get expires {
if (_expiresCache != null) return _expiresCache;
if (!headers.containsKey('expires')) return null;
_expiresCache = parseHttpDate(headers['expires']!);
return _expiresCache;
}