Skip to main content

Class: ContentDisposition

@divine/headers.ContentDisposition

Hierarchy​

Constructors​

constructor​

• new ContentDisposition(unparsed, filename?)

Parameters​

NameType
unparsedstring | ContentDisposition
filename?string

Overrides​

ContentHeader.constructor

Defined in​

headers/src/content-headers.ts:104

Properties​

headerName​

• Optional Readonly headerName: string

Inherited from​

ContentHeader.headerName

Defined in​

headers/src/content-headers.ts:9


params​

• Readonly params: ContentHeaderParams = {}

Inherited from​

ContentHeader.params

Defined in​

headers/src/content-headers.ts:7

Accessors​

filename​

• get filename(): undefined | string

Returns​

undefined | string

Defined in​

headers/src/content-headers.ts:112


type​

• get type(): string

Returns​

string

Inherited from​

ContentHeader.type

Defined in​

headers/src/content-headers.ts:49


attachment​

• Static get attachment(): ContentDisposition

Returns​

ContentDisposition

Defined in​

headers/src/content-headers.ts:92


formData​

• Static get formData(): ContentDisposition

Returns​

ContentDisposition

Defined in​

headers/src/content-headers.ts:94


inline​

• Static get inline(): ContentDisposition

Returns​

ContentDisposition

Defined in​

headers/src/content-headers.ts:93

Methods​

param​

▸ param(name): undefined | string

Parameters​

NameType
namestring

Returns​

undefined | string

Inherited from​

ContentHeader.param

Defined in​

headers/src/content-headers.ts:53

▸ param(name, fallback): string

Parameters​

NameType
namestring
fallbackstring

Returns​

string

Inherited from​

ContentHeader.param

Defined in​

headers/src/content-headers.ts:54


setParam​

▸ setParam(name, value): ContentDisposition

Parameters​

NameType
namestring
valueundefined | string | number

Returns​

ContentDisposition

Inherited from​

ContentHeader.setParam

Defined in​

headers/src/content-headers.ts:59


toString​

▸ toString(): string

Returns​

string

Inherited from​

ContentHeader.toString

Defined in​

headers/src/content-headers.ts:70


valueOf​

▸ valueOf(): string

Returns​

string

Inherited from​

ContentHeader.valueOf

Defined in​

headers/src/content-headers.ts:86


create​

▸ Static create(cd, fallback?): ContentDisposition

Parameters​

NameType
cdundefined | null | string | ContentDisposition
fallback?null | string | ContentDisposition

Returns​

ContentDisposition

Defined in​

headers/src/content-headers.ts:96