RangeParseResult class
Outcome of parseRangeHeaders — exposed for testing.
Properties
- errorStatus → int?
-
HTTP status to return on error (400 or 416), or
nullif parsing succeeded.final - hashCode → int
-
The hash code for this object.
no setterinherited
- indicateAssetSize → bool
-
When true, the caller should set
Content-Range: bytes */SIZEalongside errorStatus. Only true for 416 outcomes.final -
ranges
→ List<
({int end, int length, int start})> ? -
Parsed ranges as (start, end-exclusive, length) records.
nullmeans "serve the whole asset" (no Range header, or If-Range validator did not match the current asset). Alwaysnullwhen errorStatus is set.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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited