MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreachpair

Function foreachpair

src/http.cpp:932–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930 string output;
931
932 foreachpair (const string& key, const string& value, query) {
933 output += http::encode(key);
934 if (!value.empty()) {
935 output += "=" + http::encode(value);
936 }
937 output += '&';
938 }
939 return strings::remove(output, "&", strings::SUFFIX);
940}
941

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected