Class: ContentDisposition
@divine/headers.ContentDisposition
Hierarchy
↳
ContentDisposition
Constructors
constructor
• new ContentDisposition(unparsed
, filename?
)
Parameters
Name | Type |
---|---|
unparsed | string | ContentDisposition |
filename? | string |
Overrides
Defined in
headers/src/content-headers.ts:104
Properties
headerName
• Optional
Readonly
headerName: string
Inherited from
Defined in
headers/src/content-headers.ts:9
params
• Readonly
params: ContentHeaderParams
= {}
Inherited from
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
Defined in
headers/src/content-headers.ts:92
formData
• Static
get
formData(): ContentDisposition
Returns
Defined in
headers/src/content-headers.ts:94
inline
• Static
get
inline(): ContentDisposition
Returns
Defined in
headers/src/content-headers.ts:93
Methods
param
▸ param(name
): undefined
| string
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| string
Inherited from
Defined in
headers/src/content-headers.ts:53
▸ param(name
, fallback
): string
Parameters
Name | Type |
---|---|
name | string |
fallback | string |
Returns
string
Inherited from
Defined in
headers/src/content-headers.ts:54
setParam
▸ setParam(name
, value
): ContentDisposition
Parameters
Name | Type |
---|---|
name | string |
value | undefined | string | number |
Returns
Inherited from
Defined in
headers/src/content-headers.ts:59
toString
▸ toString(): string
Returns
string
Inherited from
Defined in
headers/src/content-headers.ts:70
valueOf
▸ valueOf(): string
Returns
string
Inherited from
Defined in
headers/src/content-headers.ts:86
create
▸ Static
create(cd
, fallback?
): ContentDisposition
Parameters
Name | Type |
---|---|
cd | undefined | null | string | ContentDisposition |
fallback? | null | string | ContentDisposition |