HTTP "Range" header parser
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
Cargo.toml
LICENSE
README.md
pre-commit
rustfmt.toml

README.md

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