Procster  0.1
Procster-ViewProcessesovertheweb
ms_test.c File Reference
#include <jansson.h>
#include "proclister.h"
Include dependency graph for ms_test.c:

Functions

int hdl_hello (request *req, response *res)
 Miniserver testbed. More...
 
int hdl_bye (request *req, response *res)
 
int hdl_json (request *req, response *res)
 
int main (int argc, char **argv)
 

Variables

static action actarr []
 

Function Documentation

◆ hdl_bye()

int hdl_bye ( request req,
response res 
)

◆ hdl_hello()

int hdl_hello ( request req,
response res 
)

Miniserver testbed.

References response::cont, and response::contlen.

◆ hdl_json()

int hdl_json ( request req,
response res 
)

◆ main()

Variable Documentation

◆ actarr

action actarr[]
static
Initial value:
= {
{.actlbl = "hello", .url = "/hello", .hdlr = hdl_hello},
{.actlbl = "bye", .url = "/bye", .hdlr = hdl_bye},
{.actlbl = "json", .url = "/json", .hdlr = hdl_json, .conttype = "application/json"}
}
int hdl_bye(request *req, response *res)
Definition: ms_test.c:15
int hdl_hello(request *req, response *res)
Miniserver testbed.
Definition: ms_test.c:8
int hdl_json(request *req, response *res)
Definition: ms_test.c:21

Referenced by main().