MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / get_protocols

Method get_protocols

src/curl_info.cpp:24–33  ·  view source on GitHub ↗

Implementation of get_protocols method.

Source from the content-addressed store, hash-verified

22
23// Implementation of get_protocols method.
24list<string> curl_info::get_protocols() const NOEXCEPT {
25 list<string> protocols;
26 const char *const *const prot = this->version->protocols;
27 unsigned int i = 0;
28 while (*(prot+i) != nullptr) {
29 protocols.emplace_back(string(*(prot+i)));
30 i++;
31 }
32 return protocols;
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected