mirror of https://github.com/rwf2/Rocket.git
Update broken doc links in contrib.
This commit is contained in:
parent
08bf1c5bdb
commit
11ec95ef8f
|
@ -23,14 +23,14 @@
|
|||
//!
|
||||
//! # Supported Headers
|
||||
//!
|
||||
//! | HTTP Header | Description | Policy | Default? |
|
||||
//! | --------------------------- | -------------------------------------- | ------------ | -------- |
|
||||
//! | [X-XSS-Protection] | Prevents some reflected XSS attacks. | [`XssFilter`] | ✔ |
|
||||
//! | [X-Content-Type-Options] | Prevents client sniffing of MIME type. | [`NoSniff`] | ✔ |
|
||||
//! | [X-Frame-Options] | Prevents [clickjacking]. | [`Frame`] | ✔ |
|
||||
//! | [Strict-Transport-Security] | Enforces strict use of HTTPS. | [`Hsts`] | ? |
|
||||
//! | [Expect-CT] | Enables certificate transparency. | [`ExpectCt`] | ✗ |
|
||||
//! | [Referrer-Policy] | Enables referrer policy. | [`Referrer`] | ✗ |
|
||||
//! | HTTP Header | Description | Policy | Default? |
|
||||
//! | --------------------------- | -------------------------------------- | ------------- | -------- |
|
||||
//! | [X-XSS-Protection] | Prevents some reflected XSS attacks. | [`XssFilter`] | ✔ |
|
||||
//! | [X-Content-Type-Options] | Prevents client sniffing of MIME type. | [`NoSniff`] | ✔ |
|
||||
//! | [X-Frame-Options] | Prevents [clickjacking]. | [`Frame`] | ✔ |
|
||||
//! | [Strict-Transport-Security] | Enforces strict use of HTTPS. | [`Hsts`] | ? |
|
||||
//! | [Expect-CT] | Enables certificate transparency. | [`ExpectCt`] | ✗ |
|
||||
//! | [Referrer-Policy] | Enables referrer policy. | [`Referrer`] | ✗ |
|
||||
//!
|
||||
//! <small>? If TLS is enabled when the application is launched, in a
|
||||
//! non-development environment (e.g., staging or production), HSTS is
|
||||
|
@ -45,12 +45,12 @@
|
|||
//! [Referrer-Policy]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
|
||||
//! [clickjacking]: https://en.wikipedia.org/wiki/Clickjacking
|
||||
//!
|
||||
//! [`XssFilter`]: helmet::XssFilter
|
||||
//! [`NoSniff`]: helmet::NoSniff
|
||||
//! [`Frame`]: helmet::Frame
|
||||
//! [`Hsts`]: helmet::Hsts
|
||||
//! [`ExpectCt`]: helmet::ExpectCt
|
||||
//! [`Referrer`]: helmet::Referrer
|
||||
//! [`XssFilter`]: self::XssFilter
|
||||
//! [`NoSniff`]: self::NoSniff
|
||||
//! [`Frame`]: self::Frame
|
||||
//! [`Hsts`]: self::Hsts
|
||||
//! [`ExpectCt`]: self::ExpectCt
|
||||
//! [`Referrer`]: self::Referrer
|
||||
//!
|
||||
//! # Usage
|
||||
//!
|
||||
|
|
|
@ -304,8 +304,9 @@ impl<'a> Responder<'a> for JsonValue {
|
|||
/// #[macro_use] extern crate rocket_contrib;
|
||||
/// ```
|
||||
///
|
||||
/// The return type of a `json!` invocation is [`JsonValue`](json::JsonValue). A
|
||||
/// value created with this macro can be returned from a handler as follows:
|
||||
/// The return type of a `json!` invocation is
|
||||
/// [`JsonValue`](crate::json::JsonValue). A value created with this macro can
|
||||
/// be returned from a handler as follows:
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(proc_macro_hygiene, decl_macro)]
|
||||
|
|
Loading…
Reference in New Issue