pub trait ExternalRequest:
Debug
+ Send
+ Sync {
// Required methods
fn new(method: &str, url: &str, headers: &[Header]) -> Self
where Self: Sized;
fn request(self) -> Result<ExternalResponse, RequestError>;
fn request_async<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<ExternalResponse, RequestError>> + Send + 'async_trait>>
where Self: 'async_trait;
fn url(&self) -> &str;
}