2 unstable releases

0.2.0 Jan 24, 2019
0.1.0 Jan 11, 2019

#13 in #byte-range

Download history 54/week @ 2024-07-19 152/week @ 2024-07-26 77/week @ 2024-08-02 37/week @ 2024-08-09 62/week @ 2024-08-16 54/week @ 2024-08-23 116/week @ 2024-08-30 102/week @ 2024-09-06 95/week @ 2024-09-13 93/week @ 2024-09-20 110/week @ 2024-09-27 70/week @ 2024-10-04 54/week @ 2024-10-11 101/week @ 2024-10-18 65/week @ 2024-10-25 98/week @ 2024-11-01

320 downloads per month
Used in rocket_seek_stream

MIT license

5KB
57 lines

Ranger Header

dependency status

HTTP Range header parser, powered by pest.

Example

use range_header::byte_range::ByteRange;

fn main(){
    assert_eq!(
        ByteRange::parse("bytes=10-100", 200),
        ByteRange {
            offset: 10,
            length: 91,
        }
    )
}

Dependencies

~2–2.8MB
~57K SLoC