You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
376 B
11 lines
376 B
![]()
3 years ago
|
//! This module is an adapter for HTTP related operations.
|
||
|
//! In the future, if we want to migrate to a different HTTP library,
|
||
|
//! we can easily change this facade instead of multiple places in the crate.
|
||
|
|
||
|
pub type Error = reqwest::Error;
|
||
|
pub type Response = reqwest::blocking::Response;
|
||
|
|
||
|
pub fn get(url: &str) -> Result<Response, Error> {
|
||
|
reqwest::blocking::get(url)
|
||
|
}
|