MCPcopy Create free account
hub / github.com/VCVRack/Rack / encodeUrl

Function encodeUrl

src/network.cpp:225–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223
224
225std::string encodeUrl(const std::string& s) {
226 CURL* curl = createCurl();
227 DEFER({curl_easy_cleanup(curl);});
228 assert(curl);
229 char* escaped = curl_easy_escape(curl, s.c_str(), s.size());
230 DEFER({curl_free(escaped);});
231 return std::string(escaped);
232}
233
234
235std::string urlPath(const std::string& url) {

Callers 2

syncUpdateFunction · 0.85
getCookieStringFunction · 0.85

Calls 2

createCurlFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected