pub struct StandardRangeDownload;Expand description
默认 Range 下载:仅设置 Range / Accept,总长度取自 Content-Length。
Trait Implementations§
Source§impl BreakpointDownload for StandardRangeDownload
impl BreakpointDownload for StandardRangeDownload
Source§fn head_url(&self, task: &TransferTask) -> String
fn head_url(&self, task: &TransferTask) -> String
HEAD 请求 URL,默认与任务 URL 相同。
Source§fn merge_head_headers(&self, _task: &TransferTask, _base: &mut HeaderMap)
fn merge_head_headers(&self, _task: &TransferTask, _base: &mut HeaderMap)
将 HEAD 专用头并入
base(base 已含 TransferTask 上的头)。Source§fn merge_range_get_headers(
&self,
task: &TransferTask,
range_value: &str,
base: &mut HeaderMap,
)
fn merge_range_get_headers( &self, task: &TransferTask, range_value: &str, base: &mut HeaderMap, )
将分片 GET 专用头并入
base;range_value 形如 bytes=0-1048575。
Accept 取自 TransferTask 上的断点下载 HTTP 配置(未设置时用 BreakpointDownloadHttpConfig 默认值)。Source§impl Clone for StandardRangeDownload
impl Clone for StandardRangeDownload
Source§fn clone(&self) -> StandardRangeDownload
fn clone(&self) -> StandardRangeDownload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StandardRangeDownload
impl Debug for StandardRangeDownload
Source§impl Default for StandardRangeDownload
impl Default for StandardRangeDownload
Source§fn default() -> StandardRangeDownload
fn default() -> StandardRangeDownload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StandardRangeDownload
impl RefUnwindSafe for StandardRangeDownload
impl Send for StandardRangeDownload
impl Sync for StandardRangeDownload
impl Unpin for StandardRangeDownload
impl UnsafeUnpin for StandardRangeDownload
impl UnwindSafe for StandardRangeDownload
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