MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / get_params

Function get_params

subprojects/llama.cpp/tools/server/server-http.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static std::map<std::string, std::string> get_params(const httplib::Request & req) {
324 std::map<std::string, std::string> params;
325 for (const auto & [key, value] : req.params) {
326 params[key] = value;
327 }
328 for (const auto & [key, value] : req.path_params) {
329 params[key] = value;
330 }
331 return params;
332}
333
334static std::map<std::string, std::string> get_headers(const httplib::Request & req) {
335 std::map<std::string, std::string> headers;

Callers 2

getMethod · 0.85
postMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected