TransportRequest class final

Everything a transport needs to open one connection.

Annotations
  • @immutable

Constructors

TransportRequest({required Uri url, Map<String, String> headers = const <String, String>{}, List<String> protocols = const <String>[], int maxMessageSize = 64 << 20, TransportTextMode textMode = TransportTextMode.raw, WebSocketTls tls = const WebSocketTls(), WebSocketProxy? proxy, Duration? keepAlive})
Creates a request.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Handshake headers.
final
keepAlive → Duration?
TCP keepalive idle time, or null to leave keepalive off.
final
maxMessageSize → int
Largest incoming message in bytes.
final
protocols → List<String>
Offered subprotocols.
final
proxy → WebSocketProxy?
HTTP CONNECT proxy, or null.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textMode → TransportTextMode
Delivery of text messages.
final
tls → WebSocketTls
TLS settings.
final
url → Uri
ws:// or wss:// URL.
final

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