set_cookie()
set_cookie()
is a macro for setting the Cookie
to the response headers.
void set_cookie_handler(Req *req, Res *res){ set_cookie("theme", "dark", 3600); // 1 hour send_text(200, "Cookies sent!");}
set_cookie()
is a macro for setting the Cookie
to the response headers.
void set_cookie_handler(Req *req, Res *res){ set_cookie("theme", "dark", 3600); // 1 hour send_text(200, "Cookies sent!");}