Class: ServerAuthorization
@divine/headers.ServerAuthorization
Hierarchy
↳
ServerAuthorization
Constructors
constructor
• new ServerAuthorization(unparsed
, proxy?
)
Parameters
Name | Type | Default value |
---|---|---|
unparsed | string | ServerAuthorization | undefined |
proxy | boolean | false |
Overrides
Defined in
headers/src/auth-headers.ts:143
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?
): ServerAuthorization
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
): ServerAuthorization
Parameters
Name | Type |
---|---|
unparsed | string | ServerAuthorization |
Returns
Defined in
headers/src/auth-headers.ts:137
▸ Static
create(unparsed
): undefined
| ServerAuthorization
Parameters
Name | Type |
---|---|
unparsed | undefined | string | ServerAuthorization |
Returns
undefined
| ServerAuthorization
Defined in
headers/src/auth-headers.ts:138
split
▸ Static
split(unparsed
): string
[]
Parameters
Name | Type |
---|---|
unparsed | string |
Returns
string
[]