DVHttpProtocolChain class
The order protocols are attempted in, best first.
A chain is a preference, not a requirement: a transport that cannot speak an entry skips it, and one that connects stops the walk. The last entry is what the request falls back to, so a chain whose floor is unreachable is a chain that can fail entirely — standard ends at HTTP/1.1 deliberately.
Constructors
-
DVHttpProtocolChain(List<
DVHttpProtocol> protocols) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
-
protocols
→ List<
DVHttpProtocol> -
final
- 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
-
supportedBy(
Set< DVHttpProtocol> capabilities) → DVHttpProtocolChain - This chain limited to what a transport can actually speak, in the chain's own order of preference.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- http2Only → const DVHttpProtocolChain
- HTTP/2 only, with no fallback.
- http11Only → const DVHttpProtocolChain
- HTTP/1.1 only.
- noQuic → const DVHttpProtocolChain
- HTTP/2 then HTTP/1.1, skipping the QUIC probe.
- standard → const DVHttpProtocolChain
- Try HTTP/3, then HTTP/2, then HTTP/1.1.