Companion

object Companion

Functions

Link copied to clipboard

Look up an HttpError by its numeric status code, or null if unknown.

Link copied to clipboard
fun messageOf(code: Int): String

Render the libtorrent http_category().message(ev) string for an arbitrary status code. Faithful to the C++ switch: known codes get their reason phrase, anything else falls back to "(unknown HTTP error)", always prefixed by the numeric code and a space.