IfRangeHeader class final
A class representing the HTTP If-Range header.
The If-Range header can contain either an HTTP date or an ETag.
Constructors
- IfRangeHeader({DateTime? lastModified, ETagHeader? etag})
- Constructs an IfRangeHeader instance with either a date or an ETag.
- IfRangeHeader.parse(String value)
-
Parses the
If-Rangeheader value and returns an IfRangeHeader instance.factory
Properties
- etag → ETagHeader?
-
The ETag if the
If-Rangeheader contains an ETag.final - hashCode → int
-
The hash code for this object.
no setteroverride
- lastModified → DateTime?
-
The HTTP date if the
If-Rangeheader contains a date.final - 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
codec
→ const HeaderCodec<
IfRangeHeader>