Skip to content

get_params()

get_params() is for getting params from request. It runs get_req() function under the hood.

static inline const char *get_params(const Req *req, const char *key)
{
return get_req(&req->params, key);
}

Example usage:

#include "ecewo.h"
void hello_world(Req *req, Res *res)
{
const char *slug = get_params("slug");
}