HttpUtils class

Utility class for making HTTP requests with timeout and retry logic.

Constructors

HttpUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

postWithRetry(Uri url, {Map<String, String>? headers, Object? body, Duration timeout = HttpConfig.defaultTimeout, int maxRetries = HttpConfig.defaultMaxRetries, Duration retryDelay = HttpConfig.defaultRetryDelay}) Future<Response>
Makes a POST request with timeout and retry support.