| 1381 | } |
| 1382 | |
| 1383 | static bool is_url_like(const char *s, int len) { |
| 1384 | if (len < MIN_ROUTE_LEN) { |
| 1385 | return false; |
| 1386 | } |
| 1387 | if (strstr(s, "://")) { |
| 1388 | return true; |
| 1389 | } |
| 1390 | if (s[0] == '/') { |
| 1391 | return is_rest_path(s, len); |
| 1392 | } |
| 1393 | return false; |
| 1394 | } |
| 1395 | |
| 1396 | static bool has_config_extension(const char *s, int len) { |
| 1397 | static const char *exts[] = {".toml", ".yaml", ".yml", ".json", ".ini", |
no test coverage detected