MCPcopy Create free account
hub / github.com/ada-url/ada / process_hostname

Method process_hostname

src/url_pattern.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297tl::expected<std::string, errors> url_pattern_init::process_hostname(
298 std::string_view value, process_type type) {
299 ada_log("process_hostname value=", value, " type=", type);
300 // If type is "pattern" then return value.
301 if (type == process_type::pattern) {
302 return std::string(value);
303 }
304 // Return the result of running canonicalize a hostname given value.
305 return url_pattern_helpers::canonicalize_hostname(value);
306}
307
308tl::expected<std::string, errors> url_pattern_init::process_port(
309 std::string_view port, std::string_view protocol, process_type type) {

Callers

nothing calls this directly

Calls 1

canonicalize_hostnameFunction · 0.85

Tested by

no test coverage detected