XrayStreamSettings class

Typed transport settings used by share-link JSON generation.

Optional maps retain protocol-specific values; toJson does not test server compatibility or activate a native transport. Prefer raw full-profile import when settings are outside this helper surface.

Implemented types

Constructors

XrayStreamSettings({required String network, required String security, JsonMap? rawSettings, JsonMap? tcpSettings, JsonMap? kcpSettings, JsonMap? wsSettings, JsonMap? httpSettings, JsonMap? h2Settings, JsonMap? tlsSettings, JsonMap? quicSettings, JsonMap? realitySettings, JsonMap? grpcSettings, JsonMap? xhttpSettings, JsonMap? httpupgradeSettings, JsonMap? hysteriaSettings, JsonMap? dsSettings, JsonMap? sockopt})
Creates transport settings with an explicit network and security.
const

Properties

dsSettings → JsonMap?
Legacy domain-socket transport settings, subject to native Core support.
final
grpcSettings → JsonMap?
gRPC transport settings such as the service name.
final
h2Settings → JsonMap?
Legacy HTTP/2 settings, serialized under the historical h2Setting key.
final
hashCode → int
The hash code for this object.
no setterinherited
httpSettings → JsonMap?
Legacy HTTP transport settings; native Core decides compatibility.
final
httpupgradeSettings → JsonMap?
HTTPUpgrade path, host and additional transport fields.
final
hysteriaSettings → JsonMap?
Hysteria transport settings, including version-2 authentication.
final
kcpSettings → JsonMap?
mKCP transport settings, retained as supplied.
final
network → String
Core transport name; serialization rejects an empty value.
final
quicSettings → JsonMap?
Legacy QUIC transport settings; native Core decides compatibility.
final
rawSettings → JsonMap?
RAW transport settings, retained as supplied.
final
realitySettings → JsonMap?
Reality server identity, public key and related transport parameters.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
security → String
Transport security mode such as tls or reality; empty when unspecified.
final
sockopt → JsonMap?
Core socket policy; VPN adapters can reject unsafe physical dialing options.
final
tcpSettings → JsonMap?
TCP transport settings, retained as supplied.
final
tlsSettings → JsonMap?
TLS settings including server identity, ALPN and verification parameters.
final
wsSettings → JsonMap?
WebSocket path, headers and other transport settings.
final
xhttpSettings → JsonMap?
XHTTP settings including mode, path and optional extra configuration.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Returns this value as JSON fields.
override
toString() → String
A string representation of this object.
inherited

Operators

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