MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / SetPath

Method SetPath

NetStream/source/browsers/http_server_browser.cpp:121–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void HttpServerBrowser::SetPath(const char *ref)
122{
123 if (ref)
124 {
125 char *encoded = curl_easy_escape(m_curl, ref, 0);
126 char *current;
127 curl_url_get(m_url, CURLUPART_URL, &current, 0);
128 string full = current;
129 full += encoded;
130 full += "/";
131 curl_url_set(m_url, CURLUPART_URL, full.c_str(), 0);
132 curl_free(encoded);
133 curl_free(current);
134 }
135}
136
137vector<HttpServerBrowser::Entry *> *HttpServerBrowser::GoTo(const char *ref, int32_t *result)
138{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected