Sub2ApiConfiguration class final

Immutable connection settings for a Sub2ApiClient.

Constructors

Sub2ApiConfiguration({required Uri origin, bool allowInsecureHttp = false, Duration connectTimeout = const Duration(seconds: 10), Duration sendTimeout = const Duration(seconds: 30), Duration receiveTimeout = const Duration(seconds: 30), Duration totalRequestTimeout = const Duration(seconds: 60)})

Properties

allowInsecureHttp → bool
Whether plain HTTP is allowed for a controlled development deployment.
final
connectTimeout → Duration
Maximum time allowed to establish a connection.
final
hashCode → int
The hash code for this object.
no setterinherited
origin → Uri
Absolute server origin. Endpoint paths are resolved internally.
final
receiveTimeout → Duration
Maximum time allowed to receive an individual response.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendTimeout → Duration
Maximum time allowed to send an individual request body.
final
totalRequestTimeout → Duration
End-to-end budget shared by the initial request, refresh, and replay.
final

Methods

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