Headers class final
Case-insensitive, multi-value HTTP headers.
Constructors
Properties
Methods
-
addAll(
Headers other) → void -
Replaces matching names with values from
other. -
append(
String name, String value) → void -
Appends
valuetoname. -
contains(
String name) → bool -
Whether
nameis present. -
copy(
) → Headers - Creates an independent copy.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String name) → void -
Removes
name. -
set(
String name, String value) → void -
Replaces
namewith onevalue. -
toString(
) → String -
A string representation of this object.
inherited
-
value(
String name) → String? -
Returns all values for
namejoined for an HTTP header line. -
values(
String name) → Iterable< String> -
Returns the individual values for
name.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited