RelayInfoHttpRepoImpl class
implementation of the RelayInfoRepo interface with http
- Implemented types
Constructors
- RelayInfoHttpRepoImpl({required HttpRequestDS httpDS, Duration timeout = const Duration(seconds: 5)})
- creates a new RelayInfoHttpRepoImpl instance
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpDS → HttpRequestDS
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
deadline covering connection setup and the entire response body, so a
stalled relay does not retain an HTTP socket
final
Methods
-
getRelayInfo(
String url) → Future< RelayInfo?> -
network request to get the RelayInfo of the relay at
url; returns null when it is unavailableoverride -
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