pub struct HttpClient { /* private fields */ }Implementations§
Source§impl HttpClient
impl HttpClient
pub fn new() -> Self
pub fn fetch_control_file(&self, url: &str) -> Result<ControlFile, HttpError>
pub fn fetch_range_reader( &self, url: &str, start: u64, end: u64, ) -> Result<HttpRangeReader, HttpError>
pub fn fetch_range( &self, url: &str, start: u64, end: u64, ) -> Result<Vec<u8>, HttpError>
pub fn fetch_ranges( &self, url: &str, ranges: &[(u64, u64)], blocksize: usize, ) -> Result<Vec<(u64, Vec<u8>)>, HttpError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpClient
impl !RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnsafeUnpin for HttpClient
impl !UnwindSafe for HttpClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more