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

Method get_param_value

examples/server/httplib.h:4860–4867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4858}
4859
4860inline std::string Request::get_param_value(const std::string &key,
4861 size_t id) const {
4862 auto rng = params.equal_range(key);
4863 auto it = rng.first;
4864 std::advance(it, static_cast<ssize_t>(id));
4865 if (it != rng.second) { return it->second; }
4866 return std::string();
4867}
4868
4869inline size_t Request::get_param_value_count(const std::string &key) const {
4870 auto r = params.equal_range(key);

Callers 1

mainFunction · 0.80

Calls 1

stringFunction · 0.70

Tested by

no test coverage detected