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

date → DateTime?
The retry date, if present.
final
delay → int?
The retry delay in seconds, if present.
final
hashCode → int
The hash code for this object.
no setteroverride
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.
override

Operators

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

Constants

codec → const HeaderCodec<RetryAfterHeader>