MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / build_query_string

Function build_query_string

tools/server/server-http.cpp:373–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373static std::string build_query_string(const httplib::Request & req) {
374 std::string qs;
375 for (const auto & [key, value] : req.params) {
376 if (!qs.empty()) {
377 qs += '&';
378 }
379 qs += httplib::encode_query_component(key) + "=" + httplib::encode_query_component(value);
380 }
381 return qs;
382}
383
384// using unique_ptr for request to allow safe capturing in lambdas
385using server_http_req_ptr = std::unique_ptr<server_http_req>;

Callers 2

getMethod · 0.85
postMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected