Http module

Serve_Error_Kind

enumsince 0.30.0Source

Why a server did not start (Serve_Error.kind), with .NONE for success. The comments say what each kind points at. Routes are checked when the server starts, not when they are added, so a conflict shows up here.

Members

NONE
INVALID_ROUTES
two routes match the same requests; message names them
INVALID_TLS
config.tls has no certificate and key, or Tls.tls_config_init was not called on it
CANNOT_LISTEN
the address is taken, malformed or not allowed; io_error says why

See also