chttpserver · Section 3
chttpsvr_create
NAME
chttpsvr_create - create an HTTP server with the default allocator
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/chttpserver.h> chttpsvr chttpsvr_create(clog cl, char **err_str);
DESCRIPTION
An inline wrapper around chttpsvr_create_mp that passes NULL as mprocs. cl may be CLOG_NULL. The rules for the logger are on the chttpsvr_create_mp page.
RETURN VALUE
A valid chttpsvr handle on success, or CHTTPSVR_NULL on failure.
NOTES
At exit, the library's destructor releases its table of server handles once no server is left. A call made after that point, for example from a later destructor or atexit handler of the application, returns CHTTPSVR_NULL with an error string, and every other function treats any handle it receives as invalid.