HttpBucket class

A bucket that holds HttpInteraction's.

If maxStoredEntries gets exceeded, the first entries are removed.

Inheritance

Constructors

HttpBucket({int? maxStoredEntries = 100, bool allowDuplicates = true})

Properties

allowDuplicates bool
getter/setter pairinherited
entries Queue<HttpInteraction>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
maxStorage int?
The maximum number of stored entries. Use null for unlimited entries.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(HttpInteraction entry) → void
Adds an entry to the bucket.
inherited
addError(int id, HttpError error) bool
Allows to add an error to an already added HttpInteraction, returns true on success.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addResponse(int id, HttpResponse response) bool
Allows to add a response to an already added HttpInteraction, returns true on success.
clear() → void
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
getHttpInteraction(int id) HttpInteraction?
Returns the corresponding HttpInteraction to this id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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