| Crates.io | armor |
| lib.rs | armor |
| version | 1.2.0 |
| created_at | 2019-05-25 01:50:16.899888+00 |
| updated_at | 2019-10-13 17:52:45.331296+00 |
| description | HTTP Security Headers. |
| homepage | |
| repository | https://github.com/rustasync/armor |
| max_upload_size | |
| id | 136838 |
| size | 54,277 |
HTTP Security Headers. Adapted from helmetjs.
Basic usage
let mut headers = http::HeaderMap::new();
armor::armor(&mut headers);
assert_eq!(headers["X-Content-Type-Options"], "nosniff");
assert_eq!(headers["X-XSS-Protection"], "1; mode=block");
$ cargo add armor
This crate uses #![deny(unsafe_code)] to ensure everything is implemented in
100% Safe Rust.
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
None.
MIT OR Apache-2.0