Class: Authorization
@divine/headers.Authorization
Hierarchy
↳
Authorization
Constructors
constructor
• new Authorization(unparsed
, proxy?
)
Parameters
Name | Type | Default value |
---|---|---|
unparsed | string | Authorization | undefined |
proxy | boolean | false |
Overrides
Defined in
headers/src/auth-headers.ts:119
Properties
credentials
• Optional
Readonly
credentials: string
Inherited from
Defined in
headers/src/auth-headers.ts:37
headerName
• Readonly
headerName: string
Inherited from
Defined in
headers/src/auth-headers.ts:40
params
• Readonly
params: AuthHeaderParams
= {}
Inherited from
Defined in
headers/src/auth-headers.ts:38
Accessors
realm
• get
realm(): undefined
| string
Returns
undefined
| string
Inherited from
AuthHeader.realm
Defined in
headers/src/auth-headers.ts:73
scheme
• get
scheme(): string
Returns
string
Inherited from
AuthHeader.scheme
Defined in
headers/src/auth-headers.ts:69
Methods
_formatParams
▸ Protected
_formatParams(): string
Returns
string
Inherited from
Defined in
headers/src/auth-headers.ts:102
isProxyHeader
▸ isProxyHeader(): boolean
Returns
boolean
Inherited from
Defined in
headers/src/auth-headers.ts:98
param
▸ param(name
): undefined
| string
Parameters
Name | Type |
---|---|
name | string |
Returns
undefined
| string
Inherited from
Defined in
headers/src/auth-headers.ts:77
▸ param(name
, fallback
): string
Parameters
Name | Type |
---|---|
name | string |
fallback | string |
Returns
string
Inherited from
Defined in
headers/src/auth-headers.ts:78
setParam
▸ setParam(name
, value
, quoted?
): Authorization
Parameters
Name | Type |
---|---|
name | string |
value | undefined | string | number |
quoted? | boolean |
Returns
Inherited from
Defined in
headers/src/auth-headers.ts:83
toString
▸ toString(): string
Returns
string
Inherited from
Defined in
headers/src/auth-headers.ts:94
create
▸ Static
create(unparsed
): Authorization
Parameters
Name | Type |
---|---|
unparsed | string | Authorization |
Returns
Defined in
headers/src/auth-headers.ts:113
▸ Static
create(unparsed
): undefined
| Authorization
Parameters
Name | Type |
---|---|
unparsed | undefined | string | Authorization |
Returns
undefined
| Authorization
Defined in
headers/src/auth-headers.ts:114
split
▸ Static
split(unparsed
): string
[]
Parameters
Name | Type |
---|---|
unparsed | string |
Returns
string
[]