Route for programmed responses. More...
Typedefs | |
| typedef int(* | vtm_http_static_rt_handle_fn )(struct vtm_http_ctx *ctx, struct vtm_http_req *req, vtm_http_res *res) |
Functions | |
| VTM_API struct vtm_http_route * | vtm_http_static_rt_new (const char *url_path, vtm_http_static_rt_handle_fn fn_handle) |
| VTM_API struct vtm_http_route* vtm_http_static_rt_new | ( | const char * | url_path, |
| vtm_http_static_rt_handle_fn | fn_handle | ||
| ) |
Creates a route for programmed responses.
| url_path | the path where the route is bound |
| fn_handle | the function that is called upon a request |
1.8.8