Struct tectonic_geturl::reqwest::ReqwestBackend
source · pub struct ReqwestBackend {}
Expand description
URL-get backend implemented using the reqwest
crate.
Trait Implementations§
source§impl Debug for ReqwestBackend
impl Debug for ReqwestBackend
source§impl Default for ReqwestBackend
impl Default for ReqwestBackend
source§fn default() -> ReqwestBackend
fn default() -> ReqwestBackend
Returns the “default value” for a type. Read more
source§impl GetUrlBackend for ReqwestBackend
impl GetUrlBackend for ReqwestBackend
§type RangeReader = ReqwestRangeReader
type RangeReader = ReqwestRangeReader
The range-reader type for URLs that will undergo byte-range reads.
source§fn get_url(
&mut self,
url: &str,
_status: &mut dyn StatusBackend
) -> Result<Response>
fn get_url( &mut self, url: &str, _status: &mut dyn StatusBackend ) -> Result<Response>
Perform an HTTP GET on a URL, returning a readable result.
source§fn resolve_url(
&mut self,
url: &str,
status: &mut dyn StatusBackend
) -> Result<String>
fn resolve_url( &mut self, url: &str, status: &mut dyn StatusBackend ) -> Result<String>
Starting with an input URL, follow redirections to get a final URL. Read more
source§fn open_range_reader(&self, url: &str) -> Self::RangeReader
fn open_range_reader(&self, url: &str) -> Self::RangeReader
Open a range reader that can perform byte-range reads on the specified URL.
Auto Trait Implementations§
impl RefUnwindSafe for ReqwestBackend
impl Send for ReqwestBackend
impl Sync for ReqwestBackend
impl Unpin for ReqwestBackend
impl UnwindSafe for ReqwestBackend
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