JaguarHttpHeaders class

Class to hold HTTP headers

Constructors

JaguarHttpHeaders()

Properties

charset String?
Sets and gets charset
getter/setter pair
contentType ContentType?
Gets and sets the content type
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, List<String>>
final
keys Iterable<String>
no setter
mimeType String?
Sets and gets mime-type
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String name, Object value) → void
Adds a header value. The header named name will have the value value added to its list of values.
clear() → void
Remove all headers
forEach(void f(String name, List<String> values)) → void
Enumerates the headers, applying the function f to each header. The header name passed in name will be all lower case.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String name, Object value) → void
Removes a specific value for a header name
removeAll(String name) → void
Removes all values for the specified header name
set(String name, String value) → void
Sets a header. The header named name will have all its values cleared before the value value is added as its value.
toString() String
A string representation of this object.
inherited
value(String name) String?
Returns header value by name

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String name) → dynamic
Returns value for the given header name
operator []=(String name, dynamic value) → void
Sets a header value by given header name