Skip to content

set_header()

set_cookie() is for setting a custom header to the response headers.

void hello_world(Req *req, Res *res)
{
set_header(res, "X-Custom", "value");
send_text(200, "hello world");
}