pub struct HttpDownloader { /* private fields */ }Expand description
HTTP downloader using ureq. The production downloader for CLI
install and update commands.
Construct with HttpDownloader::new for defaults, or
HttpDownloader::with_agent to customize the User-Agent.
Implementations§
Source§impl HttpDownloader
impl HttpDownloader
Sourcepub fn new() -> Self
pub fn new() -> Self
Build a downloader with default settings: 30-second timeout,
User-Agent confium/<version>.
Sourcepub fn with_agent(user_agent: &str) -> Self
pub fn with_agent(user_agent: &str) -> Self
Build with a custom User-Agent string.
Trait Implementations§
Source§impl Clone for HttpDownloader
impl Clone for HttpDownloader
Source§fn clone(&self) -> HttpDownloader
fn clone(&self) -> HttpDownloader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HttpDownloader
impl Default for HttpDownloader
Auto Trait Implementations§
impl !RefUnwindSafe for HttpDownloader
impl !UnwindSafe for HttpDownloader
impl Freeze for HttpDownloader
impl Send for HttpDownloader
impl Sync for HttpDownloader
impl Unpin for HttpDownloader
impl UnsafeUnpin for HttpDownloader
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