2 unstable releases

0.2.0 Jan 24, 2019
0.1.0 Jan 11, 2019

#13 in #byte-range

Download history 37/week @ 2024-04-03 12/week @ 2024-04-10 23/week @ 2024-04-17 27/week @ 2024-04-24 33/week @ 2024-05-01 21/week @ 2024-05-08 23/week @ 2024-05-15 32/week @ 2024-05-22 21/week @ 2024-05-29 15/week @ 2024-06-05 18/week @ 2024-06-12 15/week @ 2024-06-19 11/week @ 2024-06-26 48/week @ 2024-07-03 31/week @ 2024-07-10 14/week @ 2024-07-17

109 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–2.9MB
~58K SLoC