MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / set_unauthorized

Function set_unauthorized

Source/Http/HttpServer.cpp:424–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424static void set_unauthorized(httplib::Response& res) {
425 res.status = 401;
426 res.set_content(R"({"success":false,"message":"unauthorized"})"s, "application/json"s);
427}
428
429HttpServer::HttpServer()
430 : _authRequired(false)

Callers 1

startMethod · 0.85

Calls 1

set_contentMethod · 0.80

Tested by

no test coverage detected