CompressionOptions

zio.http.Server.Config.CompressionOptions
See theCompressionOptions companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Brotli(cfg: BrotliConfig) extends CompressionOptions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class BrotliConfig(quality: Int, lgwin: Int, mode: Mode)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object BrotliConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class Deflate(cfg: DeflateConfig) extends CompressionOptions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class DeflateConfig(level: Int, bits: Int, mem: Int)

Value parameters

bits

defines windowBits, The base two logarithm of the size of the history buffer. The value should be in the range 9 to 15 inclusive. Larger values result in better compression at the expense of memory usage

level

defines compression level, 1 yields the fastest compression and 9 yields the best compression. 0 means no compression.

mem

defines memlevel, How much memory should be allocated for the internal compression state. 1 uses minimum memory and 9 uses maximum memory. Larger values result in better and faster compression at the expense of memory usage

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object DeflateConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class GZip(cfg: DeflateConfig) extends CompressionOptions

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Mode

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Mode.type
sealed trait Mode

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Font
object Generic
object Text

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def brotli(quality: Int = ..., lgwin: Int = ..., mode: Mode = ...): CompressionOptions

Creates Brotli CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.BrotliOptions#DEFAULT

Creates Brotli CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.BrotliOptions#DEFAULT

Attributes

def deflate(level: Int = ..., bits: Int = ..., mem: Int = ...): CompressionOptions

Creates Deflate CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.DeflateOptions#DEFAULT

Creates Deflate CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.DeflateOptions#DEFAULT

Attributes

def gzip(level: Int = ..., bits: Int = ..., mem: Int = ...): CompressionOptions

Creates GZip CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.GzipOptions#DEFAULT

Creates GZip CompressionOptions. Defines defaults as per io.netty.handler.codec.compression.GzipOptions#DEFAULT

Attributes