UriQueryParameterSanitizer Class
Replaces the value of the specified query string parameters in the recorded request URI.
public sealed class UriQueryParameterSanitizer : IHttpRecordingSanitizerRemarks
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
| Name | Description |
|---|---|
| UriQueryParameterSanitizer(string[]) |
UriQueryParameterSanitizer(string[])
UriQueryParameterSanitizer.cspublic UriQueryParameterSanitizer(params string[] parameterNames)Parameters
parameterNamesstring[]
No documentation is available.
Methods
| Name | Description |
|---|---|
| Sanitize(HttpRecordingEntry) | Sanitizes the entry in-place to redact sensitive data. |
Sanitize(HttpRecordingEntry)
UriQueryParameterSanitizer.csSanitizes the entry in-place to redact sensitive data.
public void Sanitize(HttpRecordingEntry entry)Parameters
entryHttpRecordingEntry