CompressionConfig class
Compression configuration
Constructors
-
CompressionConfig({int minSize = 1024, int level = 6, CompressionType type = CompressionType.gzip, List<
String> ? compressibleTypes})
Properties
-
compressibleTypes
→ List<
RegExp> -
Content types to compress (regex patterns)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- level → int
-
Compression level (1-9, where 9 is maximum compression)
final
- minSize → int
-
Minimum size in bytes before compression is applied
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CompressionType
-
Compression type to use
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldCompress(
String? contentType) → bool - Check if content type should be compressed
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultConfig → CompressionConfig
-
Default compression configuration
final