10enum ERROR_CODES { RR_DUPLICATE_ROUTE, RR_OK };
18int get(
char route[], callback_t callback);
19int post(
char route[], callback_t callback);
int http_listen(void)
Definition httplib.c:181
int get(char route[], callback_t callback)
add an endpoint for a "GET" request at the given endpoint
Definition httplib.c:111
void setup(void)
this needs to be ran before registering any routes.
Definition httplib.c:27
int register_route(char route[], callback_t callback, node *root_node)
adds a route to the URI tree
Definition httplib.c:39