MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / params_to_query_str

Function params_to_query_str

examples/server/httplib.h:3918–3928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3916}
3917
3918inline std::string params_to_query_str(const Params &params) {
3919 std::string query;
3920
3921 for (auto it = params.begin(); it != params.end(); ++it) {
3922 if (it != params.begin()) { query += "&"; }
3923 query += it->first;
3924 query += "=";
3925 query += encode_query_param(it->second);
3926 }
3927 return query;
3928}
3929
3930inline void parse_query_text(const std::string &s, Params &params) {
3931 std::set<std::string> cache;

Callers 3

append_query_paramsFunction · 0.85
PostMethod · 0.85
PutMethod · 0.85

Calls 3

encode_query_paramFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected