LifetimeTrackingHttpMessageHandler class

A delegating handler that tracks the lifetime of HTTP message handlers and prevents premature disposal.

This handler wraps another handler and overrides the dispose method to prevent it from being disposed until the factory determines it's safe to do so (after the configured lifetime expires and there are no active requests).

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
innerHandler HttpMessageHandler?
getter/setter pairinherited
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.
override
disposeInner() → void
Disposes the inner handler.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(BaseRequest request) Future<StreamedResponse>
inherited
toString() String
A string representation of this object.
inherited

Operators

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