server.h¶
The server.h module provides the entrypoint for running a
mn_server instance.
API¶
-
struct mn_server¶
-
-
struct mn_route route¶
The head of the
mn_routelinked list to compare during pattern matching.
-
struct mn_route route¶
-
struct mn_status mn_server_run(struct mn_server s[static 1])¶
Spawn an event loop that waits for new
mn_requestinstances. Passes these, along with anmn_responseinstance, to the user-definedmn_route_handler_tof anmn_routethat matches the request.- Parameters:
s – The server instance to start.