Redaction class
Masks secrets (passwords, tokens, keys…) in headers, bodies and URLs.
Used for the console, the log UI, copying and exporting. The UI can show the real values on demand with reveal (the eye icon); it is reset on every app start.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
forDisplay(
Object? data) → Object? -
datamasked unless reveal is on. For the log UI. -
headers(
Map< String, String> headers) → Map<String, String> - Masks headers. Values may be strings or lists.
-
isSensitive(
String key) → bool -
Whether a header, body field or query parameter named
keyis secret. -
redact(
Object? data, {int depth = 0}) → Object? -
Returns a copy of
datawith secret values masked. JSON strings stay strings,FormDatabecomes a map. Never throws. -
url(
String url) → String -
Masks secret query parameters in
url. -
urlForDisplay(
String value) → String - url masked unless reveal is on. For the log UI.