LoggingScopeHttpMessageHandler class

A delegating handler that establishes a logging scope for each HTTP request.

This handler creates a logging scope that includes the HTTP method and URI, making it available to all loggers within the scope of the request.

The scope is automatically disposed when the request completes or fails.

Inheritance

Constructors

LoggingScopeHttpMessageHandler({required Logger logger, HttpMessageHandler? innerHandler})
Creates a new LoggingScopeHttpMessageHandler with the specified logger.

Properties

hashCode int
The hash code for this object.
no setterinherited
innerHandler HttpMessageHandler?
getter/setter pairinherited
logger Logger
The logger used for establishing the logging scope.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(BaseRequest request) Future<StreamedResponse>
override
toString() String
A string representation of this object.
inherited

Operators

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