Skip to content

HttpFieldsOptions

HttpFieldsOptions = object

Defined in: packages/format-http/src/http-fields.ts:19

optional foldSpacing?: string

Defined in: packages/format-http/src/http-fields.ts:38

Spacing to use when folding fields (default: single space).


optional sensitiveFields?: 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.


optional toStringRedacted?: boolean

Defined in: packages/format-http/src/http-fields.ts:44

If true, the toString method will redact sensitive fields (default: true).


optional unfoldableFields?: 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.