Struct actix_web::header::HttpRange
[−]
[src]
pub struct HttpRange { pub start: u64, pub length: u64, }
HTTP Range header representation.
Fields
start: u64
length: u64
Methods
impl HttpRange
[src]
pub fn parse(
header: &str,
size: u64
) -> Result<Vec<HttpRange>, HttpRangeParseError>
[src]
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 Clone for HttpRange
[src]
fn clone(&self) -> HttpRange
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more