HttpLoggingInterceptor class Null safety

A RequestInterceptor and ResponseInterceptor implementation which logs HTTP request and response data.

Warning: Log messages written by this interceptor have the potential to leak sensitive information, such as Authorization headers and user data in response bodies. This interceptor should only be used in a controlled way or in a non-production environment.

Implemented types
Annotations

Constructors

HttpLoggingInterceptor()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onRequest(Request request) FutureOr<Request>
override
onResponse(Response response) FutureOr<Response>
override
toString() String
A string representation of this object.
inherited

Operators

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