NetLensRedaction class
Describes which values of a call are sensitive. Sensitive values are replaced with mask in shared and exported calls (text log, cURL, HAR, copy) and are hidden in the inspector until they are revealed.
Names are matched case-insensitively and exactly. Use NetLensRedaction.none to turn redaction off.
Constructors
Properties
-
bodyFields
→ Set<
String> -
Names of sensitive fields in JSON bodies and form data, at any depth.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Set<
String> -
Names of sensitive request and response headers.
final
- isEmpty → bool
-
Returns true when nothing is redacted.
no setter
- mask → String
-
Text which replaces a sensitive value.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
queryParameters
→ Set<
String> -
Names of sensitive URL query parameters.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
isSensitiveBodyField(
String name) → bool -
Returns true when body or form field
nameis sensitive. -
isSensitiveHeader(
String name) → bool -
Returns true when header
nameis sensitive. -
isSensitiveQueryParameter(
String name) → bool -
Returns true when query parameter
nameis sensitive. -
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
Constants
-
defaultBodyFields
→ const Set<
String> - JSON body and form fields which carry credentials in most APIs.
-
defaultHeaders
→ const Set<
String> - Headers which carry credentials in most APIs.
- defaultMask → const String
- Default text which replaces a sensitive value.
-
defaultQueryParameters
→ const Set<
String> - Query parameters which carry credentials in most APIs.
- none → const NetLensRedaction
- Redaction which keeps every value.