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

Method GetPath

NetStream/source/browsers/http_server_browser.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93string HttpServerBrowser::GetPath()
94{
95 string ret;
96 char *path;
97 curl_url_get(m_url, CURLUPART_URL, &path, 0);
98 if (path)
99 {
100 char *decoded = curl_easy_unescape(m_curl, path, 0, NULL);
101 ret = decoded;
102 curl_free(decoded);
103 curl_free(path);
104 }
105
106 return ret;
107}
108
109void HttpServerBrowser::GetInfoForPlayer(string const& in, string& url, GenericPlayer::Option **opt)
110{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected