SupportedProtocols enum

Protocols supported by an AWSHttpClient.

Inheritance

Values

http1 → const SupportedProtocols

Supports only HTTP/1.1 servers.

This can be used as a fallback when the protocol switching logic is not behaving as expected.

const SupportedProtocols._([AlpnProtocol.http1_1])
http2_3 → const SupportedProtocols

Supports HTTP/2 and HTTP/3 servers.

Note: Currently this only supports HTTP/3 on the Web via fetch. HTTP/3 is not supported on VM.

const SupportedProtocols._([AlpnProtocol.http2, AlpnProtocol.http3])
http1_2_3 → const SupportedProtocols

Support HTTP/1.1, HTTP/2, and HTTP/3 servers.

Note: Currently this only supports HTTP/3 on the Web via fetch. HTTP/3 is not supported on VM.

const SupportedProtocols._([AlpnProtocol.http1_1, AlpnProtocol.http2, AlpnProtocol.http3])

Properties

alpnValues List<String>
The list of ALPN values supported by this, used when negotiating connection with a server.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
protocols List<AlpnProtocol>
The list of ALPN protocols supported by this.
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
supports(AlpnProtocol protocol) bool
Whether this supports the HTTP protocol.
toString() String
A string representation of this object.
inherited

Operators

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

Constants

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