PubClientConfig class

HTTP retry configuration for talking to pub (or alternate registries).

Values map to the melos.pub section in the root pubspec.yaml, allowing CLI users to tune timeouts and retry behaviour without code changes.

Annotations
  • @immutable

Constructors

PubClientConfig({Duration? requestTimeout, RetryBackoff retryBackoff = const RetryBackoff()})
const
PubClientConfig.fromYaml(Object? yaml)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
requestTimeout Duration?
Timeout applied to registry HTTP requests. null (default) means no timeout is applied.
final
retryBackoff → RetryBackoff
Retry/backoff settings applied to registry HTTP requests.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
override

Operators

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