ProxyRelayHop class

Relay servers are secure HTTP proxies that allow proxying TCP traffic using the CONNECT method and UDP traffic using the connect-udp protocol defined in RFC 9298.

If http3RelayEndpoint is not null, it creates a configuration for a secure relay accessible using HTTP/3, with an optional HTTP/2 fallback using http2RelayEndpoint. Otherwise, if http2RelayEndpoint is not null, it sreates a configuration for a secure relay accessible only using HTTP/2.

At least one of http3RelayEndpoint or http2RelayEndpoint must be non-null.

Constructors

ProxyRelayHop({String? http3RelayEndpoint, String? http2RelayEndpoint, Map<String, String>? additionalHTTPHeaders})

Properties

additionalHTTPHeaders Map<String, String>?
A dictionary of additional HTTP headers to send as part of CONNECT requests to the relay.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
http2RelayEndpoint String?
A URL or host endpoint identifying the relay server accessible using HTTP/2.
getter/setter pair
http3RelayEndpoint String?
A URL or host endpoint identifying the relay server accessible using HTTP/3.
getter/setter pair
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
toJson() Map<String, dynamic>
Converts instance to a map.
toMap({EnumMethod? enumMethod}) Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map, {EnumMethod? enumMethod}) ProxyRelayHop?
Gets a possible ProxyRelayHop instance from a Map value.