HttpClientAsyncLogger class abstract

An abstraction for asyncronous custom HTTP request logging for a named HttpClient instances returned by HttpClientFactory.

Inheritance

Constructors

HttpClientAsyncLogger()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

logRequestFailed(Object? context, BaseRequest? request, Exception exception, Duration elapsed) → void
Logs the exception happened while sending an HTTP request.
inherited
logRequestFailedAsync(Object? context, BaseRequest? request, Exception exception, Duration elapsed, CancellationToken? cancellationToken) Future<void>
logRequestStart(BaseRequest request) Object?
Logs before sending an HTTP request.
inherited
logRequestStartAsync(BaseRequest request, CancellationToken? cancellationToken) Future<Object?>
logRequestStop(Object? context, BaseRequest response, Duration elapsed) → void
Logs after receiving an HTTP response.
inherited
logRequestStopAsync(Object? context, BaseRequest response, Duration elapsed, CancellationToken? cancellationToken) Future<void>
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