DVHttpProtocol enum

An HTTP wire protocol, identified by its ALPN token.

The token is the identifier that matters: protocol selection happens during the TLS handshake, so this is what a transport actually negotiates with, not a label attached afterwards.

Inheritance
Available extensions

Values

http3 → const DVHttpProtocol

HTTP/3 over QUIC. UDP, so a network that blocks or throttles UDP fails here and nowhere else — which is the reason fallback exists.

const DVHttpProtocol('h3')
http2 → const DVHttpProtocol

HTTP/2 over TLS. Multiplexed, and what APNS requires.

const DVHttpProtocol('h2')
http11 → const DVHttpProtocol

HTTP/1.1. Always reachable, and the floor of every fallback chain.

const DVHttpProtocol('http/1.1')

Properties

alpn → String
The ALPN protocol identifier, as sent in the TLS handshake.
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
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.
inherited

Operators

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

Static Methods

fromAlpn(String token) → DVHttpProtocol?
The protocol for an ALPN token, or null when it is not one Dartvel speaks. Tolerates the h3-29-style draft tokens some servers still advertise.

Constants

values → const List<DVHttpProtocol>
A constant List of the values in this enum, in order of their declaration.