function get_cookie
C++
std::optional<std::string> get_cookie(std::string_view name)
Get a named cookie value from the current HTTP request. Returns std::nullopt when:
- not inside an HTTP-dispatched servant call, or
- the named cookie is absent.
include/nprpc/http_auth.hpp:61