RetryAfterHeader class final
A class representing the HTTP Retry-After header.
This class manages both date-based and delay-based retry values. The Retry-After header can contain either an HTTP date or a delay in seconds indicating when the client should retry the request.
Constructors
- RetryAfterHeader({int? delay, DateTime? date})
- Constructs a RetryAfterHeader instance with either a delay in seconds or a date.
- RetryAfterHeader.parse(String value)
-
Parses the Retry-After header value and returns a RetryAfterHeader instance.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
-
codec
→ const HeaderCodec<
RetryAfterHeader>