diff options
Diffstat (limited to 'src/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 4e5428a..0c1a0c4 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -145,6 +145,10 @@ pub fn temp_file(prefix: &str, suffix: &str) -> PathBuf { )) } +pub fn is_url(path: &str) -> bool { + path.starts_with("http://") || path.starts_with("https://") +} + pub fn set_proxy( builder: reqwest::ClientBuilder, proxy: Option<&String>, |
