extract

abstract fun extract(message: String): Duration?(source)

Extracts a retry-after duration from the provided error message.

Return

The extracted retry-after duration, or null if no valid duration could be determined.

Parameters

message

The error message from which to extract the retry-after duration.