Module sensitivity

Source
Expand description

The combination of HTTP binding traits and the sensitive trait require us to redact portions of the HTTP requests/responses during logging.

Modules§

headers
A wrapper around HeaderMap to allow for sensitivity.
uri
Wrappers around Uri and it’s constituents to allow for sensitivity.

Structs§

MakeSensitive
A MakeFmt producing Sensitive.
RequestFmt
Allows the modification the requests URIs Display and headers Debug to accommodate sensitivity.
ResponseFmt
Allows the modification the responses status code Display and headers Debug to accommodate sensitivity.
Sensitive
A wrapper used to modify the Display and Debug implementation of the inner structure based on the feature flag unredacted-logging. When the unredacted-logging feature is enabled, the implementations will defer to those on T, when disabled they will defer to REDACTED.

Constants§

REDACTED
The string placeholder for redacted data.

Traits§

Sensitivity
An interface for providing MakeDebug and MakeDisplay for Request and Response.

Type Aliases§

DefaultRequestFmt
Default RequestFmt.
DefaultResponseFmt
Default ResponseFmt.