| 295 | } |
| 296 | |
| 297 | tl::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 | |
| 308 | tl::expected<std::string, errors> url_pattern_init::process_port( |
| 309 | std::string_view port, std::string_view protocol, process_type type) { |
nothing calls this directly
no test coverage detected