LockableMockHttpHeaders class Null safety

Headers that can be locked to editing, i.e. after a request body has been written.

Inheritance

Constructors

LockableMockHttpHeaders()

Properties

chunkedTransferEncoding bool
Whether the connection uses chunked transfer encoding.
read / writeinherited
contentLength int
The value of the contentLengthHeader header, if any.
read / writeinherited
contentType ContentType?
The ContentType of the contentTypeHeader header, if any.
read / writeinherited
date DateTime?
The date specified by the dateHeader header, if any.
read / writeinherited
doNotFold List<String>
read-onlyinherited
expires DateTime?
The date and time specified by the expiresHeader header, if any.
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
host String?
The value of the hostHeader header, if any.
read / writeinherited
ifModifiedSince DateTime?
The date and time specified by the ifModifiedSinceHeader header, if any.
read / writeinherited
persistentConnection bool
Whether the connection is persistent (keep-alive).
read / writeinherited
port int?
The value of the port part of the hostHeader header, if any.
read / writeinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

add(String name, Object value, {bool preserveHeaderCase = false}) → void
Adds a header value.
override
clear() → void
Removes all headers.
override
forEach(void f(String name, List<String> values)) → void
Performs the action on each header.
inherited
lock() → void
noFolding(String name) → void
Disables folding for the header named name when sending the HTTP header.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 to value.
override
toString() String
A string representation of this object.
inherited
value(String name) String?
Convenience method for the value for a single valued header.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String name) List<String>?
The values for the header named name.
inherited