Implementation of get_protocols method.
| 22 | |
| 23 | // Implementation of get_protocols method. |
| 24 | list<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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected