CurlLogger class
Logs each request as a ready-to-paste cURL command.
- Inheritance
-
- Object
- Interceptor
- CurlLogger
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- printer → void Function(String)
-
Sink each curl command is written to. Defaults to
print.final -
redactBodyKeys
→ Set<
String> -
JSON body keys whose values are replaced with
<redacted>(case- and separator-insensitive).final -
redactHeaders
→ Set<
String> -
Header names whose values are replaced with
<redacted>(case-insensitive).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
-
onError(
InterceptedRequest req, ApiException error) → Future< InterceptorResult> -
Called when a step fails, bottom → top. May recover with a response,
proceed to retry the chain, or reject with a (possibly different) error.
inherited
-
onRequest(
InterceptedRequest req) → Future< InterceptorResult> -
Called before transport, top → bottom. Return a ProceedResult to
continue, a ResolveResult to short-circuit with a response, or a
RejectResult to fail.
override
-
onResponse(
InterceptedRequest req, AdapterResponse res) → Future< InterceptorResult> -
Called after a response, bottom → top. May replace the response, reject,
or proceed to restart the chain with a fresh request.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited