A HeaderStore that can be written.
Every writer rejects a value with CR, LF or NUL, the characters that would end a header field or the header block and hand the rest of the message to whoever supplied the value. Typed headers check the rest of the field-value grammar when the header is read.
- Inheritance
-
- Object
- HeaderStore
- MutableHeaderStore
Constructors
- MutableHeaderStore()
-
const
Properties
- fieldCount → int
-
The number of name and value pairs.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setterinherited
- isNotEmpty → bool
-
no setterinherited
-
names
→ Iterable<
HeaderName> -
Every distinct name, in the order it first appears.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
HeaderName name, String value) → void -
Appends
valueto the values forname. -
clear(
) → void -
contains(
HeaderName name) → bool -
inherited
-
forEach(
void visit(HeaderName name, String value)) → void -
Visits every name and value pair, in order.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
HeaderName name) → void -
set(
HeaderName name, Iterable< String> values) → void -
Replaces every value for
namewithvalues, or removes the field whenvaluesis empty. -
toMutable(
) → MutableHeaderStore -
A MapHeaderStore with this store's fields.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
value(
HeaderName name) → String? -
The first value for
name, or null.inherited -
values(
HeaderName name) → Iterable< String> -
Every value for
name, in order, or empty whennameis absent.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkValue(
HeaderName name, String value) → void -
Throws FormatException when
valuecarries CR, LF or NUL.