HttpFieldsOptions
HttpFieldsOptions =
object
Defined in: packages/format-http/src/http-fields.ts:19
Properties
Section titled “Properties”foldSpacing?
Section titled “foldSpacing?”
optionalfoldSpacing?:string
Defined in: packages/format-http/src/http-fields.ts:38
Spacing to use when folding fields (default: single space).
sensitiveFields?
Section titled “sensitiveFields?”
optionalsensitiveFields?:ReadonlyArray<string|RegExp>
Defined in: packages/format-http/src/http-fields.ts:28
Set of fields that are considered sensitive and whose values should be redacted in logs.
Can include strings (case-insensitive) or regular expressions.
Defaults to a set of common sensitive fields.
toStringRedacted?
Section titled “toStringRedacted?”
optionaltoStringRedacted?:boolean
Defined in: packages/format-http/src/http-fields.ts:44
If true, the toString method will redact sensitive fields (default:
true).
unfoldableFields?
Section titled “unfoldableFields?”
optionalunfoldableFields?:ReadonlyArray<string|RegExp>
Defined in: packages/format-http/src/http-fields.ts:35
Set of fields that should not be unfolded when parsing.
Defaults to a set of common unfoldable fields.