Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Compression

Hierarchy

  • Middleware
    • Compression

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private Readonly #format

#format: IComressFormats

disabled

disabled: boolean

ignore_errors

ignore_errors: boolean

Accessors

format

Methods

run

  • run(context: Context): Context
  • Parameters

    • context: Context

    Returns Context

Static Private #getFormat

  • #getFormat(context: Context, format: IComressFormats): "br" | "gzip" | "x-gzip" | "deflate" | "identity"
  • Parameters

    Returns "br" | "gzip" | "x-gzip" | "deflate" | "identity"