CompressionOptions class
The CompressionOptions class allows you to control the options of WebSocket compression.
Constants
- DEFAULT → CompressionOptions
-
Default WebSocket Compression options. Compression will be enabled with the following options: clientNoContextTakeover: false serverNoContextTakeover: false clientMaxWindowBits: 15 serverMaxWindowBits: 15
const CompressionOptions()
- OFF → CompressionOptions
-
Disables WebSocket Compression.
const CompressionOptions(enabled: false)
Constructors
- CompressionOptions({bool clientNoContextTakeover: false, bool serverNoContextTakeover: false, int clientMaxWindowBits, int serverMaxWindowBits, bool enabled: true }) const
Properties
- clientMaxWindowBits → int final
-
Sets the Max Window Bits for the Client.
- clientNoContextTakeover → bool final
-
Control whether the client will reuse it's compression instances.
- enabled → bool final
-
Enables or disables WebSocket compression.
- serverMaxWindowBits → int final
-
Sets the Max Window Bits for the Server.
- serverNoContextTakeover → bool final
-
Control whether the server will reuse it's compression instances.
- hashCode → int read-only, inherited
-
The hash code for this object.
- runtimeType → Type read-only, inherited
-
A representation of the runtime type of the object.
Operators
- operator ==(
other) → bool inherited -
The equality operator.
Methods
- noSuchMethod(
Invocation invocation) → dynamic inherited -
Invoked when a non-existent method or property is accessed.
- toString(
) → String inherited -
Returns a string representation of this object.
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/CompressionOptions-class.html