| 17171 | } |
| 17172 | |
| 17173 | ada_string ada_get_protocol(ada_url result) noexcept { |
| 17174 | ada::result<ada::url_aggregator>& r = get_instance(result); |
| 17175 | if (!r) { |
| 17176 | return ada_string_create(nullptr, 0); |
| 17177 | } |
| 17178 | std::string_view out = r->get_protocol(); |
| 17179 | return ada_string_create(out.data(), out.length()); |
| 17180 | } |
| 17181 | |
| 17182 | uint8_t ada_get_host_type(ada_url result) noexcept { |
| 17183 | ada::result<ada::url_aggregator>& r = get_instance(result); |
nothing calls this directly
no test coverage detected