Taxum / @taxum/core / http / HeaderValue
Class: HeaderValue
Defined in: http/headers.ts:271
Represents a single value in an HTTP header.
Some header values may be sensitive and should not be logged or displayed. You can mark headers as sensitive by calling setSensitive(true)
. This will prevent the value from being exposed to loggers.
Constructors
Constructor
new HeaderValue(
value
,sensitive
):HeaderValue
Defined in: http/headers.ts:278
Creates a new HeaderValue.
Parameters
value
string
sensitive
boolean
= false
Returns
HeaderValue
Properties
value
readonly
value:string
Defined in: http/headers.ts:272
Methods
isSensitive()
isSensitive():
boolean
Defined in: http/headers.ts:294
Checks if the header value is sensitive.
Returns
boolean
setSensitive()
setSensitive(
sensitive
):this
Defined in: http/headers.ts:286
Marks the header value as sensitive.
Parameters
sensitive
boolean
Returns
this
toJSON()
toJSON():
string
Defined in: http/headers.ts:298
Returns
string