armor

Crates.ioarmor
lib.rsarmor
version1.2.0
sourcesrc
created_at2019-05-25 01:50:16.899888
updated_at2019-10-13 17:52:45.331296
descriptionHTTP Security Headers.
homepage
repositoryhttps://github.com/rustasync/armor
max_upload_size
id136838
size54,277
Yosh (yoshuawuyts)

documentation

https://docs.rs/armor

README

armor

crates.io version build status downloads docs.rs docs

HTTP Security Headers. Adapted from helmetjs.

Examples

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");

Installation

$ cargo add armor

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

None.

License

MIT OR Apache-2.0

Commit count: 21

cargo fmt