PeekRedactor class final

Applies a PeekRedactionPolicy to what adapters report.

Anything untouched by the policy comes back as the same instance, so a call with nothing to hide costs nothing.

Constructors

PeekRedactor(PeekRedactionPolicy policy)
Creates a redactor for policy.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
policy → PeekRedactionPolicy
What to mask.
final
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
redactBody(PeekBody body) → PeekBody
Masks matching keys in JSON and URL-encoded text bodies and matching fields in form bodies. Other bodies come back untouched.
redactEntry(PeekEntry entry) → PeekEntry
Masks the request and, when present, the response of entry.
redactHeaders(PeekHeaders headers) → PeekHeaders
Masks the values of matching headers. Cookie headers keep their cookie names and attributes.
redactRequest(PeekRequest request) → PeekRequest
Masks the URL query, headers and body of request.
redactResponse(PeekResponse response) → PeekResponse
Masks the headers and body of response.
redactUri(Uri uri) → Uri
Masks the values of matching query parameters, leaving the rest of the query byte for byte as it was.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited