HttpDates class

Parsing for the Last-Modified and Date headers the object-storage backends read.

Written here rather than pulled from package:http_parser so the storage backends do not take a direct dependency on a transitive package for one function — and so an unparsable header degrades to null instead of throwing, which is what every caller wants: a missing modification time is cosmetic, and must never fail a download.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

format(DateTime value) String
Formats value as an RFC 1123 HTTP date.
tryParse(String? value) DateTime?
Parses an RFC 1123 HTTP date (Wed, 21 Oct 2015 07:28:00 GMT) into a UTC DateTime, or returns null if value is absent or malformed.