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

Method Probe

NetStream/source/browsers/http_server_browser.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool HttpServerBrowser::Probe()
68{
69 curl_easy_setopt(m_curl, CURLOPT_NOBODY, 1L);
70
71 CURLcode ret = curl_easy_perform(m_curl);
72 curl_easy_setopt(m_curl, CURLOPT_NOBODY, 0L);
73 curl_easy_setopt(m_curl, CURLOPT_HTTPGET, 1L);
74
75 if (ret != CURLE_OK)
76 {
77 return false;
78 }
79
80 return true;
81}
82
83bool HttpServerBrowser::IsAtRoot(string *current)
84{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected