use crate::error::Result;
use async_trait::async_trait;
use bytes::Bytes;
use std::str;
#[cfg(not(target_arch = "wasm32"))]
#[async_trait]
pub trait AsyncHttpRangeClient {
async fn get_range(&self, url: &str, range: &str) -> Result<Bytes>;
async fn head_response_header(&self, url: &str, header: &str) -> Result<Option<String>>;
}
#[cfg(target_arch = "wasm32")]
#[async_trait(?Send)]
pub trait AsyncHttpRangeClient {
async fn get_range(&self, url: &str, range: &str) -> Result<Bytes>;
async fn head_response_header(&self, url: &str, header: &str) -> Result<Option<String>>;
}
pub trait SyncHttpRangeClient {
fn get_range(&self, url: &str, range: &str) -> Result<Bytes>;
fn head_response_header(&self, url: &str, header: &str) -> Result<Option<String>>;
}