Debian Codegraph @

/

debian rust-http-range 0.1.5+dfsg-1debian librust-http-range-dev debian librust-http-range+default-dev debian librust-http-range-0-dev debian librust-http-range-0+default-dev debian librust-http-range-0.1-dev debian librust-http-range-0.1+default-dev debian librust-http-range-0.1.5-dev debian librust-http-range-0.1.5+default-dev cargo http-range 0.1.5 debianjsonmakefilemarkdownrustrust-c-abishelltomlyaml 16 files · 129 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

rust-http-range

HTTP Range header parser. It parses Range HTTP header string as per RFC 2616.

Inspired by Go's net/http library.

Overview

Example usage:

extern crate http_range;

use http_range::{HttpRange};

fn main() {
    let range_str = "bytes=0-8";
    let size = 10;

    match HttpRange::parse(range_str, size) {
        Ok(rngs) => for r in rngs {
            println!("Start {}, length {}", r.start, r.length)
        },
        Err(err) => println!("HttpRange parse error: {:?}", err)
    };
}

Used in

Author

Luka Zakrajšek

License

MIT

dir .github/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file Cargo.toml
file Cargo.toml.orig
file LICENSE
file README.md