TunnelProtocol enum
The application protocol a tunnel carries, which decides whether the Hub looks inside the stream.
Values
- tcp → const TunnelProtocol
-
Opaque TCP: bytes are relayed untouched (the default).
- http → const TunnelProtocol
-
HTTP/1.x: the Hub adds forwarding headers (client address,
httporhttps, host, port, tunnel context) to every request it relays to the target. Responses, bodies and upgraded (WebSocket) streams are untouched.
Properties
- 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
- wireName → String
-
The wire / CLI name (
tcp,http).no setter
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
-
parse(
String? value) → TunnelProtocol? -
Parses a wire / CLI name; a missing value is tcp and an unknown one
null, so a peer can tell "not asked" from "asked for something I don't support".
Constants
-
values
→ const List<
TunnelProtocol> - A constant List of the values in this enum, in order of their declaration.