mirror of
https://github.com/fafhrd91/actix-web
synced 2025-09-02 17:46:38 +02:00
update all IETF RFC links to new URL format
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use super::{EntityTag, IF_NONE_MATCH};
|
||||
|
||||
crate::http::header::common_header! {
|
||||
/// `If-None-Match` header, defined in
|
||||
/// [RFC7232](https://tools.ietf.org/html/rfc7232#section-3.2)
|
||||
/// `If-None-Match` header, defined
|
||||
/// in [RFC 7232 §3.2](https://datatracker.ietf.org/doc/html/rfc7232#section-3.2)
|
||||
///
|
||||
/// The `If-None-Match` header field makes the request method conditional
|
||||
/// on a recipient cache or origin server either not having any current
|
||||
@@ -16,13 +16,11 @@ crate::http::header::common_header! {
|
||||
/// the representation data.
|
||||
///
|
||||
/// # ABNF
|
||||
///
|
||||
/// ```text
|
||||
/// If-None-Match = "*" / 1#entity-tag
|
||||
/// ```
|
||||
///
|
||||
/// # Example values
|
||||
///
|
||||
/// # Example Values
|
||||
/// * `"xyzzy"`
|
||||
/// * `W/"xyzzy"`
|
||||
/// * `"xyzzy", "r2d2xxxx", "c3piozzzz"`
|
||||
@@ -30,7 +28,6 @@ crate::http::header::common_header! {
|
||||
/// * `*`
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// use actix_web::HttpResponse;
|
||||
/// use actix_web::http::header::IfNoneMatch;
|
||||
@@ -54,7 +51,7 @@ crate::http::header::common_header! {
|
||||
/// ```
|
||||
(IfNoneMatch, IF_NONE_MATCH) => {Any / (EntityTag)+}
|
||||
|
||||
test_if_none_match {
|
||||
test_parse_and_format {
|
||||
crate::http::header::common_header_test!(test1, vec![b"\"xyzzy\""]);
|
||||
crate::http::header::common_header_test!(test2, vec![b"W/\"xyzzy\""]);
|
||||
crate::http::header::common_header_test!(test3, vec![b"\"xyzzy\", \"r2d2xxxx\", \"c3piozzzz\""]);
|
||||
|
Reference in New Issue
Block a user