RangeHeader class abstract

Represents the contents of a parsed Range header.

Constructors

RangeHeader.new(Iterable<RangeHeaderItem> items, {String? rangeUnit})
const
factory
RangeHeader.parse(String text, {Iterable<String>? allowedRangeUnits, bool fold = true})
Attempts to parse a RangeHeader from its text representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
items UnmodifiableListView<RangeHeaderItem>
Returns an immutable list of the ranges that were parsed.
no setter
rangeUnit String?
Returns this header's range unit. Most commonly, this is bytes.
no setter
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

foldItems(Iterable<RangeHeaderItem> items) UnmodifiableListView<RangeHeaderItem>
Eliminates any overlapping items, sorts them, and folds them all into the most efficient representation possible.