Class: ContentHeader
@divine/headers.ContentHeader
Hierarchy
ContentHeader
Constructors
constructor
• new ContentHeader(unparsed
, headerName?
)
Parameters
Name | Type |
---|---|
unparsed | string | ContentHeader |
headerName? | string |
Defined in
headers/src/content-headers.ts:9
Properties
headerName
• Optional
Readonly
headerName: string
Defined in
headers/src/content-headers.ts:9
params
• Readonly
params: ContentHeaderParams
= {}
Defined in
headers/src/content-headers.ts:7
Accessors
type
• get
type(): string
Returns
string
Defined in
headers/src/content-headers.ts:49
Methods
param
▸ param(name
): undefined
| string
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| string
Defined in
headers/src/content-headers.ts:53
▸ param(name
, fallback
): string
Parameters
Name | Type |
---|---|
name | string |
fallback | string |
Returns
string
Defined in
headers/src/content-headers.ts:54
setParam
▸ setParam(name
, value
): ContentHeader
Parameters
Name | Type |
---|---|
name | string |
value | undefined | string | number |
Returns
Defined in
headers/src/content-headers.ts:59
toString
▸ toString(): string
Returns
string
Defined in
headers/src/content-headers.ts:70
valueOf
▸ valueOf(): string
Returns
string