Documentation
¶
Overview ¶
Package retryafter parses HTTP Retry-After values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse reads a Retry-After value, either delay-seconds or an HTTP-date, relative to now. It reports false for an empty, malformed or negative value, and for a date that is not in the future (usually clock skew), so callers apply their own default. A positive limit caps the delay: a huge value neither overflows nor pauses the caller for longer than it allows.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.