Expand description
What a passalong-server answers when it refuses, and what this client does about it.
Errors are application/problem+json with a stable code; the client
decides from the code alone. A single command repeats only what the
server marks retryable, at most three attempts, one, two, then four
seconds apart. RATE_LIMITED waits for Retry-After when that is a
minute or less. A 401 is never repeated: an address that sends too many
bad keys is locked out, and every device behind it with it.
Structs§
- Problem
- An
application/problem+jsonanswer.
Enums§
- Code
- A problem’s stable code.
- Https
Error - Why a request to a server failed.
- Next
- What to do after a failed attempt.
Constants§
- ATTEMPTS
- The most attempts a single request gets.
- MAX_
RETRY_ AFTER - The longest
Retry-Aftera command waits out instead of failing.
Functions§
- next
- Whether to repeat a request after
attemptsattempts ended witherr.