HttpHeadersMixin mixin
class MyHttpHeaders with HttpHeadersMixin implements HttpHeaders {
// Must override
@override
HttpHeaders get httpHeaders;
...
}
- Implemented types
Properties
- chunkedTransferEncoding ↔ bool
-
Whether the connection uses chunked transfer encoding.
getter/setter pairoverride
- contentLength ↔ int
-
The value of the contentLengthHeader header, if any.
getter/setter pairoverride
- contentType ↔ ContentType?
-
The ContentType of the contentTypeHeader header, if any.
getter/setter pairoverride
- date ↔ DateTime?
-
The date specified by the dateHeader header, if any.
getter/setter pairoverride
- expires ↔ DateTime?
-
The date and time specified by the expiresHeader header, if any.
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String?
-
The value of the hostHeader header, if any.
getter/setter pairoverride
- httpHeaders → HttpHeaders
-
no setter
- ifModifiedSince ↔ DateTime?
-
The date and time specified by the ifModifiedSinceHeader header, if any.
getter/setter pairoverride
- persistentConnection ↔ bool
-
Whether the connection is persistent (keep-alive).
getter/setter pairoverride
- port ↔ int?
-
The value of the port part of the hostHeader header, if any.
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
String name, Object value, {bool preserveHeaderCase = false}) → void -
Adds a header value.
override
-
clear(
) → void -
Removes all headers.
override
-
forEach(
void action(String name, List< String> values)) → void -
Performs the
action
on each header.override -
noFolding(
String name) → void -
Disables folding for the header named
name
when sending the HTTP header.override -
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.
override
-
removeAll(
String name) → void -
Removes all values for the specified header name.
override
-
set(
String name, Object value, {bool preserveHeaderCase = false}) → void -
Sets the header
name
tovalue
.override -
toString(
) → String -
A string representation of this object.
inherited
-
value(
String name) → String? -
Convenience method for the value for a single valued header.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String name) → List< String> ? -
The values for the header named
name
.override