| 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) { |
| 310 | // If type is "pattern" then return portValue. |
| 311 | if (type == process_type::pattern) { |
| 312 | return std::string(port); |
| 313 | } |
| 314 | // Return the result of running canonicalize a port given portValue and |
| 315 | // protocolValue. |
| 316 | return url_pattern_helpers::canonicalize_port_with_protocol(port, protocol); |
| 317 | } |
| 318 | |
| 319 | tl::expected<std::string, errors> url_pattern_init::process_pathname( |
| 320 | std::string_view value, std::string_view protocol, process_type type) { |
nothing calls this directly
no test coverage detected