retry After Delay Millis
Reads the Retry-After header from a header map and converts it to milliseconds.
Return
The delay in milliseconds, or null if the header is missing or unparseable.
Parameters
headers
Response headers, matched case-insensitively for Retry-After.
Reads the Retry-After header from a Spotify result and converts it to milliseconds.
Headers are taken from the success payload or, on failure, from an SpotifyFailure.ApiError (the only failure kind that carries HTTP headers); other failure kinds have none.
Return
The delay in milliseconds, or null if the header is missing or unparseable.
Parameters
response
The result whose headers are inspected for Retry-After.