TransportRequest constructor
const
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.
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,
});