isURLPath checks if a path is an HTTP or HTTPS URL
(path string)
| 1054 | |
| 1055 | // isURLPath checks if a path is an HTTP or HTTPS URL |
| 1056 | func isURLPath(path string) bool { |
| 1057 | scheme, _ := RefParts(path) |
| 1058 | return scheme == httpScheme || scheme == httpsScheme |
| 1059 | } |
| 1060 | |
| 1061 | // resolveReference resolves a reference (which may be relative) against a base path |
| 1062 | // If ref is absolute (has a scheme), it returns ref as-is |