opsick
|
Web API router that takes care of incoming HTTP requests. More...
#include "http.h"
Go to the source code of this file.
Functions | |
void | opsick_router_init () |
void | opsick_router_free () |
void | opsick_on_request (http_s *request) |
Web API router that takes care of incoming HTTP requests.
void opsick_on_request | ( | http_s * | request | ) |
Callback for handling HTTP requests.
request | The HTTP request that was obtained (this will be processed based on path, params, etc...). |
void opsick_router_free | ( | ) |
Disables and deallocates the HTTP request router.
void opsick_router_init | ( | ) |
Pre-allocates values that are used often, reads user config, initializes the HTTP request router, starts listening to HTTP requests on the user-defined port and starts facil.io.