segf-k 1.0
|
Go to the source code of this file.
Data Structures | |
struct | http_request |
struct | http_response |
Typedefs | |
typedef void(* | router_handler) (struct http_request *req, struct http_response *res) |
Functions | |
void | segfk_run (int port) |
Starts the minimal HTTP server. | |
void | segfk_stop () |
void | segfk_add_route (const char *method, const char *path, router_handler handler) |
struct http_request * | segfk_create_request () |
struct http_response * | segfk_create_response () |
void | segfk_send_response (struct http_response *response) |
typedef void(* router_handler) (struct http_request *req, struct http_response *res) |
void segfk_add_route | ( | const char * | method, |
const char * | path, | ||
router_handler | handler ) |
struct http_request * segfk_create_request | ( | ) |
struct http_response * segfk_create_response | ( | ) |
void segfk_run | ( | int | port | ) |
void segfk_send_response | ( | struct http_response * | response | ) |
void segfk_stop | ( | ) |