Class ProtoHttpAttachmentOptions

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

Options for capturing and redacting HTTP request/response artifacts, shared by the REST and GraphQL integrations so both observe the same capture and redaction rules. Each protocol registers an instance created with its own configuration section.

public class ProtoHttpAttachmentOptions : ProtoDiagnosticCaptureOptions, IProtoConfigurableOptions
Inheritance
ProtoHttpAttachmentOptions
Implements
Inherited Members
Extension Methods

Constructors

ProtoHttpAttachmentOptions()

Creates options for a protocol that does not name a section, defaulting to ProtoTest:Http:Attachments.

public ProtoHttpAttachmentOptions()

ProtoHttpAttachmentOptions(string)

Creates options bound to a known configuration section, e.g. ProtoTest:Rest:Attachments.

public ProtoHttpAttachmentOptions(string configurationSectionName)

Parameters

configurationSectionName string

Properties

SensitiveHeaders

Header names whose values are redacted in diagnostics.

public List<string> SensitiveHeaders { get; set; }

Property Value

List<string>

SensitiveQueryParameters

Query parameter names whose values are redacted in diagnostics.

public List<string> SensitiveQueryParameters { get; set; }

Property Value

List<string>