UriQueryParameterSanitizer Class

Replaces the value of the specified query string parameters in the recorded request URI.

public sealed class UriQueryParameterSanitizer : IHttpRecordingSanitizer

Remarks

HeaderRemovalSanitizer only reaches headers. Secrets frequently travel in the query string (api_key, sig, token), which this sanitizer redacts. Credentials in the userinfo component (https://user:password@host/) are removed unconditionally when the request is captured.

Implements

Constructors

NameDescription
UriQueryParameterSanitizer(string[])

UriQueryParameterSanitizer(string[])

UriQueryParameterSanitizer.cs
public UriQueryParameterSanitizer(params string[] parameterNames)

Parameters

parameterNames string[]

No documentation is available.

Methods

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

Sanitize(HttpRecordingEntry)

UriQueryParameterSanitizer.cs

Sanitizes the entry in-place to redact sensitive data.

public void Sanitize(HttpRecordingEntry entry)

Parameters

entry HttpRecordingEntry