Can download ISO file by URL

This commit is contained in:
2023-09-05 16:12:20 +02:00
parent 4b55e17ee0
commit e7d5747b99
11 changed files with 231 additions and 9 deletions

View File

@ -65,4 +65,16 @@ impl From<tempfile::PersistError> for HttpErr {
}
}
impl From<reqwest::Error> for HttpErr {
fn from(value: reqwest::Error) -> Self {
HttpErr { err: value.into() }
}
}
impl From<reqwest::header::ToStrError> for HttpErr {
fn from(value: reqwest::header::ToStrError) -> Self {
HttpErr { err: value.into() }
}
}
pub type HttpResult = Result<HttpResponse, HttpErr>;