Skip to content
module@warp-drive/utilities/handlers

Interface Constraints ​

ts
interface Constraints {
  ArrayBuffer?: number;
  Blob?: number;
  DataView?: number;
  String?: number;
  TypedArray?: number;
}

Defined in: -private/handlers/auto-compress.ts:40

The minimum body size, per body type, at which AutoCompress compresses a request body. Passed as CompressionOptions.constraints.

Properties ​

ArrayBuffer? ​

ts
optional ArrayBuffer?: number;

Defined in: -private/handlers/auto-compress.ts:52

The minimum size at which to compress array buffers

Default ​

ts
1000

Blob? ​

ts
optional Blob?: number;

Defined in: -private/handlers/auto-compress.ts:46

The minimum size at which to compress blobs

Default ​

ts
1000

DataView? ​

ts
optional DataView?: number;

Defined in: -private/handlers/auto-compress.ts:64

The minimum size at which to compress data views

Default ​

ts
1000

String? ​

ts
optional String?: number;

Defined in: -private/handlers/auto-compress.ts:70

The minimum size at which to compress strings

Default ​

ts
1000

TypedArray? ​

ts
optional TypedArray?: number;

Defined in: -private/handlers/auto-compress.ts:58

The minimum size at which to compress typed arrays

Default ​

ts
1000

Released under the MIT License.