ConnectionHeader class final

A class representing the HTTP Connection header.

This class manages connection directives, such as keep-alive, close, or multiple directives (e.g., upgrade, keep-alive). It provides functionality to parse and generate connection header values.

Constructors

ConnectionHeader.directives(List<ConnectionHeaderType> directives)
Constructs a ConnectionHeader instance with the specified connection directives.
const
ConnectionHeader.parse(Iterable<String> values)
Parses the Connection header values and returns a ConnectionHeader instance.
factory

Properties

directives → List<ConnectionHeaderType>
A list of connection directives (e.g., keep-alive, close, upgrade).
final
hashCode → int
The hash code for this object.
no setteroverride
isClose → bool
Checks if the connection is marked as close.
no setter
isKeepAlive → bool
Checks if the connection is marked as keep-alive.
no setter
isUpgrade → bool
Checks if the connection is marked as upgrade.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

codec → const HeaderCodec<ConnectionHeader>