use crate::protocol::Protocol;
#[cfg(feature = "curl")]
pub mod curl;
pub enum TransportMethod {
Post(String),
Get(String),
Custom(String, String),
}
pub trait Transport<P: Protocol> {
fn new(info: &str, protocol: P) -> anyhow::Result<Self>
where
Self: Sized;
fn call(&self, method: TransportMethod, request: &P::InnerType)
-> anyhow::Result<P::InnerType>;
}