range_header 0.1.0

HTTP Range header parser

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,
        }
    )
}