Headers class

Models HTTP Headers that can be managed by the framework.

Constructors

Headers()

Properties

contentType ContentType?
getter/setter pair
date DateTime?
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

Methods

add(String key, List<String> value) → void
Adds a header with the given name and values. Appends to the existing values if the header already exists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String key, List<String> value) → void
Sets the values of the header with the given name. Overrides existing values if the header already exists.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) List<String>?
Easily index into the headers map.