MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / HandleResourcesFile

Method HandleResourcesFile

src/render_panel/network/http_handler.cpp:161–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 }
160
161 void HttpHandler::HandleResourcesFile(http::web_request &req, http::web_response &rep) {
162 std::string_view target = req.target();
163 std::string_view query = req.query();
164 auto file_path = this->context_->GetCurrentExeFolder() + std::string(target);
165 LOGI("Res file path: {}", file_path);
166 rep.fill_file(target);
167 }
168
169 void HttpHandler::HandleSteamCacheFile(http::web_request &req, http::web_response &rep) {
170 std::string_view target = req.target();

Callers 1

StartMethod · 0.80

Calls 1

GetCurrentExeFolderMethod · 0.45

Tested by

no test coverage detected