Headers class
This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples). In all methods of this interface, header names are matched by case-insensitive byte sequence.
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Properties
- append ↔ void Function(String, String)
-
Available on Headers, provided by the Headers$Typings extension
getter/setter pair - delete ↔ void Function(String)
-
Available on Headers, provided by the Headers$Typings extension
getter/setter pair - get ↔ String? Function(String)
-
Available on Headers, provided by the Headers$Typings extension
getter/setter pair -
getSetCookie
↔ List<
String> Function() -
Available on Headers, provided by the Headers$Typings extension
getter/setter pair - has ↔ bool Function(String)
-
Available on Headers, provided by the Headers$Typings extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- set ↔ void Function(String, String)
-
Available on Headers, provided by the Headers$Typings extension
getter/setter pair
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