Skip to content
HTTP Security Headers
Rust
Branch: master
Clone or download
Pull request Compare This branch is 13 commits behind rustasync:master.
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.
.github . May 25, 2019
src Added referrer-policy as an optional header (rustasync#2) May 28, 2019
tests . May 25, 2019
.gitignore . May 25, 2019
.travis.yml . May 25, 2019
CHANGELOG.md Update changelog May 28, 2019
Cargo.toml (cargo-release) version 1.1.0 May 28, 2019
LICENSE-APACHE . May 25, 2019
LICENSE-MIT . May 25, 2019
README.md finalize May 26, 2019

README.md

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

You can’t perform that action at this time.