C Collections

chttpserver · Section 3

chttpsvr_create

chttpsvr_create - create an HTTP server with the default allocator

C Collections (libccollections, -lccollections)

#include <ccollections/chttpserver.h>
 
chttpsvr chttpsvr_create(clog cl, char **err_str);

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.

A valid chttpsvr handle on success, or CHTTPSVR_NULL on failure.

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.

chttpsvr_create_mp(3)