Headers class final

Case-insensitive, multi-value HTTP headers.

Constructors

Headers([Map<String, Iterable<String>> values = const {}])
Creates headers from zero or more values per name.
Headers.single(Map<String, String> values)
Creates headers containing one value per name.
factory

Properties

entries → Iterable<MapEntry<String, List<String>>>
Iterates over normalized names and their values.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAll(Headers other) → void
Replaces matching names with values from other.
append(String name, String value) → void
Appends value to name.
contains(String name) → bool
Whether name is 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 name with one value.
toString() → String
A string representation of this object.
inherited
value(String name) → String?
Returns all values for name joined 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