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

Function append_query_params

examples/server/httplib.h:4795–4802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4793}
4794
4795inline std::string append_query_params(const std::string &path,
4796 const Params &params) {
4797 std::string path_with_query = path;
4798 const static std::regex re("[^?]+\\?.*");
4799 auto delm = std::regex_match(path, re) ? '&' : '?';
4800 path_with_query += delm + detail::params_to_query_str(params);
4801 return path_with_query;
4802}
4803
4804// Header utilities
4805inline std::pair<std::string, std::string> make_range_header(Ranges ranges) {

Callers 1

GetMethod · 0.85

Calls 1

params_to_query_strFunction · 0.85

Tested by

no test coverage detected