Skip to content

Taxum / @taxum/core / middleware/cors / Vary

Class: Vary

Defined in: middleware/cors/vary.ts:10

Holds configuration for how to set the Vary header.

See

Methods

default()

static default(): Vary

Defined in: middleware/cors/vary.ts:17

Returns

Vary


from()

static from(like): Vary

Defined in: middleware/cors/vary.ts:21

Parameters

like

VaryLike

Returns

Vary


list()

static list(headers): Vary

Defined in: middleware/cors/vary.ts:32

Sets multiple headers to vary on.

Parameters

headers

string[]

Returns

Vary