opsick
Functions
router.h File Reference

Web API router that takes care of incoming HTTP requests. More...

#include "http.h"
Include dependency graph for router.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)
 

Detailed Description

Web API router that takes care of incoming HTTP requests.

Author
Raphael Beck

Function Documentation

◆ opsick_on_request()

void opsick_on_request ( http_s *  request)

Callback for handling HTTP requests.

Parameters
requestThe HTTP request that was obtained (this will be processed based on path, params, etc...).

◆ opsick_router_free()

void opsick_router_free ( )

Disables and deallocates the HTTP request router.

◆ opsick_router_init()

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.