Problems

Reads problems as a Wow server writes them: what a retry may do is the problem's retry member, which every problem carries (the error catalog's for its code when it lacks one), its wait the Retry-After it came with, else the catalog's. A body that is no Wow problem (a proxy's, a gateway's) may be retried when it is a 503 or a 429, with the same request id.

Functions

Link copied to clipboard
fun read(status: Int, headers: HttpHeaders, body: ByteArray): PeerProblem

The problem of a response of status with headers and body, whatever its body holds.