Struct pacman_bintrans_common::http::Client
source · pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
pub fn new(proxy: Option<Proxy>) -> Result<Client>
pub async fn http_request(&self, url: Url) -> Result<Response>
pub async fn download_to_mem<U: IntoUrl>(
&self,
url: U,
limit: Option<usize>
) -> Result<Vec<u8>>
pub async fn download_to_file<U: IntoUrl>(
&self,
url: U,
output: &Path
) -> Result<usize>
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more