iron-send-file

Serve files with Range header support for Iron library.

Example

```rust extern crate iron; extern crate ironsendfile;

use std::path::Path; use iron::prelude::*; use ironsendfile::send_file;

fn main() { Iron::new(|req: &mut Request| { let path = Path::new("src/main.rs");

        let res = Response::new();

        send_file(req, res, path)
    })
    .http("localhost:3000")
    .unwrap();

} ```

$ curl http://localhost:3000 -H "Range: bytes=0-5" extern

Author

Luka Zakrajšek

License

MIT