Skip to content

get_query()

get_query() is for getting query string from request. It runs get_req() function under the hood.

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

Example usage:

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