Read access to the header fields of a message.
A base class, not an interface. An implementer extends it and provides names and values. Everything else has a default, so a member added here later breaks no store in another package. Override a default when the store can do better, say value on a store that caches its first value.
Names are matched case-insensitively through HeaderName. Values are text.
Constructors
- HeaderStore()
-
const
Properties
- fieldCount → int
-
The number of name and value pairs.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
-
names
→ Iterable<
HeaderName> -
Every distinct name, in the order it first appears.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
HeaderName name) → bool -
forEach(
void visit(HeaderName name, String value)) → void - Visits every name and value pair, in order.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMutable(
) → MutableHeaderStore - A MapHeaderStore with this store's fields.
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
HeaderName name) → String? -
The first value for
name, or null. -
values(
HeaderName name) → Iterable< String> -
Every value for
name, in order, or empty whennameis absent.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited