Struct http_range::HttpRange
[−]
[src]
pub struct HttpRange {
pub start: u64,
pub length: u64,
}HTTP Range header representation.
Fields
start: u64
length: u64
Methods
impl HttpRange[src]
fn parse(header: &str, size: u64) -> Result<Vec<HttpRange>, HttpRangeParseError>
Parses Range HTTP header string as per RFC 2616.
header is HTTP Range header (e.g. bytes=bytes=0-9).
size is full size of response (file).
Trait Implementations
impl Debug for HttpRange[src]
impl Clone for HttpRange[src]
fn clone(&self) -> HttpRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more