IHttpRecordingSanitizer Interface

Defines the contract for sanitizing recorded HTTP entries.

public interface IHttpRecordingSanitizer

Remarks

Sanitizers run on both sides of matching: on entries before they are persisted, and on the entry built from an incoming request before its fingerprint is computed. Applying the same transformation to both sides is what allows a value to be redacted without breaking replay. A sanitizer must therefore be deterministic.

Methods

NameDescription
Sanitize(HttpRecordingEntry)Sanitizes the entry in-place to redact sensitive data.

Sanitize(HttpRecordingEntry)

Sanitizes the entry in-place to redact sensitive data.

void Sanitize(HttpRecordingEntry entry)

Parameters

entry HttpRecordingEntry