PersistentHttpSender class
A Sender that persists payloads and defers its transport in case of client connectivity issues, temporary server errors, or interruptions.
- Inheritance
-
- Object
- HttpSender
- PersistentHttpSender
- Mixed-in types
- Annotations
-
- @sealed
- @immutable
Constructors
- PersistentHttpSender.new(Config config)
Properties
- config → Config
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headers → HttpHeaders
-
finalinherited
-
records
→ TableSet<
PayloadRecord> -
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
finalinherited
Methods
-
didExpire(
PayloadRecord record) → bool -
inherited
-
log(
Object o, [StackTrace? stackTrace]) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
JsonMap payload) → Future< bool> -
Sends the provided payload as the body of POST request to the configured
endpoint.
inherited
-
sendString(
String payload) → Future< bool> -
Sends the specified payload.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited