CompressionOptions class

The CompressionOptions class allows you to control the options of WebSocket compression.

Constants

DEFAULTCompressionOptions

Default WebSocket Compression options. Compression will be enabled with the following options: clientNoContextTakeover: false serverNoContextTakeover: false clientMaxWindowBits: 15 serverMaxWindowBits: 15

OFFCompressionOptions

Disables WebSocket Compression.

const CompressionOptions(enabled: false)

Constructors

CompressionOptions({bool clientNoContextTakeover: false, bool serverNoContextTakeover: false, int clientMaxWindowBits, int serverMaxWindowBits, bool enabled: true })
const

Properties

clientMaxWindowBitsint
final

Sets the Max Window Bits for the Client.

clientNoContextTakeoverbool
final

Control whether the client will reuse it's compression instances.

enabledbool
final

Enables or disables WebSocket compression.

serverMaxWindowBitsint
final

Sets the Max Window Bits for the Server.

serverNoContextTakeoverbool
final

Control whether the server will reuse it's compression instances.

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
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