|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|

Go to the source code of this file.
Enumerations | |
| enum | KlError { KL_ERR_NONE = 0 , KL_ERR_INVALID_ARG , KL_ERR_ALLOC , KL_ERR_OVERFLOW , KL_ERR_SOCKET , KL_ERR_BIND , KL_ERR_LISTEN , KL_ERR_CONNECT , KL_ERR_IO , KL_ERR_TIMEOUT , KL_ERR_DNS , KL_ERR_TLS_INIT , KL_ERR_TLS_HANDSHAKE , KL_ERR_TLS_VTABLE , KL_ERR_URL , KL_ERR_PARSE , KL_ERR_TOO_LARGE , KL_ERR_HEADER , KL_ERR_EVENT_INIT , KL_ERR_EVENT_ADD , KL_ERR_QUEUE_FULL , KL_ERR_THREAD , KL_ERR_PIPE , KL_ERR_REDIRECT_LOOP , KL_ERR_COMPRESS , KL_ERR_PROXY , KL_ERR__COUNT } |
| Diagnostic error codes for Keel public functions. More... | |
Functions | |
| const char * | kl_strerror (KlError err) |
| Return a short human-readable message for an error code. | |
| enum KlError |
Diagnostic error codes for Keel public functions.
Stored as a field on owning structs (KlServer, KlEventCtx, KlClientResponse, KlClient). Set at the point of return -1, defaults to KL_ERR_NONE (0) via existing memset initialization.
| const char * kl_strerror | ( | KlError | err | ) |
Return a short human-readable message for an error code.
| err | Error code. |