TransportRequest constructor

const TransportRequest({
  1. required Uri url,
  2. Map<String, String> headers = const <String, String>{},
  3. List<String> protocols = const <String>[],
  4. int maxMessageSize = 64 << 20,
  5. TransportTextMode textMode = TransportTextMode.raw,
  6. WebSocketTls tls = const WebSocketTls(),
  7. WebSocketProxy? proxy,
  8. Duration? keepAlive,
})

Creates a request.

Implementation

const TransportRequest({
  required this.url,
  this.headers = const <String, String>{},
  this.protocols = const <String>[],
  this.maxMessageSize = 64 << 20,
  this.textMode = TransportTextMode.raw,
  this.tls = const WebSocketTls(),
  this.proxy,
  this.keepAlive,
});