From 690cc4542d939ca1bf8a54044fb001e90357defe Mon Sep 17 00:00:00 2001 From: glendc Date: Thu, 25 Apr 2024 10:02:59 +0200 Subject: [PATCH] update IETF rfc links in docs http://tools.ietf.org/html/ links now redirect to https://datatracker.ietf.org/doc/html/ this patch applies that change directly in the docs, just in case those redirects ever stop working, and to save some time on the reader their part --- src/common/accept_ranges.rs | 2 +- src/common/allow.rs | 2 +- src/common/connection.rs | 2 +- src/common/content_encoding.rs | 2 +- src/common/content_length.rs | 4 ++-- src/common/content_type.rs | 2 +- src/common/cookie.rs | 2 +- src/common/date.rs | 2 +- src/common/etag.rs | 2 +- src/common/expires.rs | 2 +- src/common/if_modified_since.rs | 2 +- src/common/if_range.rs | 2 +- src/common/if_unmodified_since.rs | 2 +- src/common/last_modified.rs | 2 +- src/common/location.rs | 2 +- src/common/referer.rs | 2 +- src/common/retry_after.rs | 2 +- src/common/server.rs | 2 +- src/common/set_cookie.rs | 2 +- src/common/te.rs | 2 +- src/common/transfer_encoding.rs | 4 ++-- src/common/upgrade.rs | 2 +- src/common/user_agent.rs | 2 +- src/disabled/accept.rs | 2 +- src/disabled/accept_charset.rs | 2 +- src/disabled/accept_encoding.rs | 2 +- src/disabled/accept_language.rs | 2 +- src/disabled/from.rs | 2 +- src/disabled/link.rs | 4 ++-- src/disabled/prefer.rs | 2 +- src/disabled/preference_applied.rs | 2 +- 31 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/common/accept_ranges.rs b/src/common/accept_ranges.rs index 97075332..8020014c 100644 --- a/src/common/accept_ranges.rs +++ b/src/common/accept_ranges.rs @@ -2,7 +2,7 @@ use http::HeaderValue; use crate::util::FlatCsv; -/// `Accept-Ranges` header, defined in [RFC7233](http://tools.ietf.org/html/rfc7233#section-2.3) +/// `Accept-Ranges` header, defined in [RFC7233](https://datatracker.ietf.org/doc/html/rfc7233#section-2.3) /// /// The `Accept-Ranges` header field allows a server to indicate that it /// supports range requests for the target resource. diff --git a/src/common/allow.rs b/src/common/allow.rs index 1a46ff52..8fd232b2 100644 --- a/src/common/allow.rs +++ b/src/common/allow.rs @@ -4,7 +4,7 @@ use http::{HeaderValue, Method}; use crate::util::FlatCsv; -/// `Allow` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.1) +/// `Allow` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1) /// /// The `Allow` header field lists the set of methods advertised as /// supported by the target resource. The purpose of this field is diff --git a/src/common/connection.rs b/src/common/connection.rs index 10428548..b7acd251 100644 --- a/src/common/connection.rs +++ b/src/common/connection.rs @@ -6,7 +6,7 @@ use self::sealed::AsConnectionOption; use crate::util::FlatCsv; /// `Connection` header, defined in -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-6.1) +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-6.1) /// /// The `Connection` header field allows the sender to indicate desired /// control options for the current connection. In order to avoid diff --git a/src/common/content_encoding.rs b/src/common/content_encoding.rs index 5e992e92..3421ac5c 100644 --- a/src/common/content_encoding.rs +++ b/src/common/content_encoding.rs @@ -4,7 +4,7 @@ use self::sealed::AsCoding; use crate::util::FlatCsv; /// `Content-Encoding` header, defined in -/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-3.1.2.2) +/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.2.2) /// /// The `Content-Encoding` header field indicates what content codings /// have been applied to the representation, beyond those inherent in the diff --git a/src/common/content_length.rs b/src/common/content_length.rs index 1cabfff6..a23a00bf 100644 --- a/src/common/content_length.rs +++ b/src/common/content_length.rs @@ -3,7 +3,7 @@ use http::HeaderValue; use crate::{Error, Header}; /// `Content-Length` header, defined in -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2) +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2) /// /// When a message does not have a `Transfer-Encoding` header field, a /// Content-Length header field can provide the anticipated size, as a @@ -16,7 +16,7 @@ use crate::{Error, Header}; /// /// Note that setting this header will *remove* any previously set /// `Transfer-Encoding` header, in accordance with -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2): +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2): /// /// > A sender MUST NOT send a Content-Length header field in any message /// > that contains a Transfer-Encoding header field. diff --git a/src/common/content_type.rs b/src/common/content_type.rs index 3778f652..a47d9e03 100644 --- a/src/common/content_type.rs +++ b/src/common/content_type.rs @@ -6,7 +6,7 @@ use mime::Mime; use crate::{Error, Header}; /// `Content-Type` header, defined in -/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-3.1.1.5) +/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5) /// /// The `Content-Type` header field indicates the media type of the /// associated representation: either the representation enclosed in the diff --git a/src/common/cookie.rs b/src/common/cookie.rs index 88765c66..7551c2ad 100644 --- a/src/common/cookie.rs +++ b/src/common/cookie.rs @@ -1,6 +1,6 @@ use crate::util::{FlatCsv, SemiColon}; -/// `Cookie` header, defined in [RFC6265](http://tools.ietf.org/html/rfc6265#section-5.4) +/// `Cookie` header, defined in [RFC6265](https://datatracker.ietf.org/doc/html/rfc6265#section-5.4) /// /// If the user agent does attach a Cookie header field to an HTTP /// request, the user agent must send the cookie-string diff --git a/src/common/date.rs b/src/common/date.rs index 320a84c5..2ac15379 100644 --- a/src/common/date.rs +++ b/src/common/date.rs @@ -2,7 +2,7 @@ use std::time::SystemTime; use crate::util::HttpDate; -/// `Date` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.1.2) +/// `Date` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.1.2) /// /// The `Date` header field represents the date and time at which the /// message was originated. diff --git a/src/common/etag.rs b/src/common/etag.rs index 5abc807a..95c8a4cb 100644 --- a/src/common/etag.rs +++ b/src/common/etag.rs @@ -2,7 +2,7 @@ use std::str::FromStr; use crate::util::EntityTag; -/// `ETag` header, defined in [RFC7232](http://tools.ietf.org/html/rfc7232#section-2.3) +/// `ETag` header, defined in [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-2.3) /// /// The `ETag` header field in a response provides the current entity-tag /// for the selected representation, as determined at the conclusion of diff --git a/src/common/expires.rs b/src/common/expires.rs index a3ce2a2f..1378e121 100644 --- a/src/common/expires.rs +++ b/src/common/expires.rs @@ -2,7 +2,7 @@ use std::time::SystemTime; use crate::util::HttpDate; -/// `Expires` header, defined in [RFC7234](http://tools.ietf.org/html/rfc7234#section-5.3) +/// `Expires` header, defined in [RFC7234](https://datatracker.ietf.org/doc/html/rfc7234#section-5.3) /// /// The `Expires` header field gives the date/time after which the /// response is considered stale. diff --git a/src/common/if_modified_since.rs b/src/common/if_modified_since.rs index 14a6bb18..3c3fde33 100644 --- a/src/common/if_modified_since.rs +++ b/src/common/if_modified_since.rs @@ -2,7 +2,7 @@ use crate::util::HttpDate; use std::time::SystemTime; /// `If-Modified-Since` header, defined in -/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-3.3) +/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-3.3) /// /// The `If-Modified-Since` header field makes a GET or HEAD request /// method conditional on the selected representation's modification date diff --git a/src/common/if_range.rs b/src/common/if_range.rs index e46768d7..918487a9 100644 --- a/src/common/if_range.rs +++ b/src/common/if_range.rs @@ -6,7 +6,7 @@ use super::{ETag, LastModified}; use crate::util::{EntityTag, HttpDate, TryFromValues}; use crate::Error; -/// `If-Range` header, defined in [RFC7233](http://tools.ietf.org/html/rfc7233#section-3.2) +/// `If-Range` header, defined in [RFC7233](https://datatracker.ietf.org/doc/html/rfc7233#section-3.2) /// /// If a client has a partial copy of a representation and wishes to have /// an up-to-date copy of the entire representation, it could use the diff --git a/src/common/if_unmodified_since.rs b/src/common/if_unmodified_since.rs index 9c2f3d7d..460c22a5 100644 --- a/src/common/if_unmodified_since.rs +++ b/src/common/if_unmodified_since.rs @@ -2,7 +2,7 @@ use crate::util::HttpDate; use std::time::SystemTime; /// `If-Unmodified-Since` header, defined in -/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-3.4) +/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-3.4) /// /// The `If-Unmodified-Since` header field makes the request method /// conditional on the selected representation's last modification date diff --git a/src/common/last_modified.rs b/src/common/last_modified.rs index d817319c..c1c914df 100644 --- a/src/common/last_modified.rs +++ b/src/common/last_modified.rs @@ -2,7 +2,7 @@ use crate::util::HttpDate; use std::time::SystemTime; /// `Last-Modified` header, defined in -/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-2.2) +/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-2.2) /// /// The `Last-Modified` header field in a response provides a timestamp /// indicating the date and time at which the origin server believes the diff --git a/src/common/location.rs b/src/common/location.rs index 12920836..33845e2e 100644 --- a/src/common/location.rs +++ b/src/common/location.rs @@ -1,7 +1,7 @@ use http::HeaderValue; /// `Location` header, defined in -/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.2) +/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.2) /// /// The `Location` header field is used in some responses to refer to a /// specific resource in relation to the response. The type of diff --git a/src/common/referer.rs b/src/common/referer.rs index 7d753f30..2a31df36 100644 --- a/src/common/referer.rs +++ b/src/common/referer.rs @@ -4,7 +4,7 @@ use std::str::FromStr; use crate::util::HeaderValueString; /// `Referer` header, defined in -/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.2) +/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.2) /// /// The `Referer` \[sic\] header field allows the user agent to specify a /// URI reference for the resource from which the target URI was obtained diff --git a/src/common/retry_after.rs b/src/common/retry_after.rs index a0a432b0..bcde63b6 100644 --- a/src/common/retry_after.rs +++ b/src/common/retry_after.rs @@ -24,7 +24,7 @@ use crate::Error; /// let date = RetryAfter::date(SystemTime::now()); /// ``` -/// Retry-After header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.3) +/// Retry-After header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.3) #[derive(Debug, Clone, PartialEq, Eq)] pub struct RetryAfter(After); diff --git a/src/common/server.rs b/src/common/server.rs index 6d6bbb08..543c97dd 100644 --- a/src/common/server.rs +++ b/src/common/server.rs @@ -3,7 +3,7 @@ use std::str::FromStr; use crate::util::HeaderValueString; -/// `Server` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.2) +/// `Server` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.2) /// /// The `Server` header field contains information about the software /// used by the origin server to handle the request, which is often used diff --git a/src/common/set_cookie.rs b/src/common/set_cookie.rs index df3db696..da452511 100644 --- a/src/common/set_cookie.rs +++ b/src/common/set_cookie.rs @@ -2,7 +2,7 @@ use http::{HeaderName, HeaderValue}; use crate::{Error, Header}; -/// `Set-Cookie` header, defined [RFC6265](http://tools.ietf.org/html/rfc6265#section-4.1) +/// `Set-Cookie` header, defined [RFC6265](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1) /// /// The Set-Cookie HTTP response header is used to send cookies from the /// server to the user agent. diff --git a/src/common/te.rs b/src/common/te.rs index 0134b70c..95bf04a5 100644 --- a/src/common/te.rs +++ b/src/common/te.rs @@ -3,7 +3,7 @@ use http::HeaderValue; use crate::util::FlatCsv; /// `TE` header, defined in -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-4.3) +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-4.3) /// /// As RFC7230 states, "The "TE" header field in a request indicates what transfer codings, /// besides chunked, the client is willing to accept in response, and diff --git a/src/common/transfer_encoding.rs b/src/common/transfer_encoding.rs index ac943cc9..bd235b0e 100644 --- a/src/common/transfer_encoding.rs +++ b/src/common/transfer_encoding.rs @@ -3,7 +3,7 @@ use http::HeaderValue; use crate::util::FlatCsv; /// `Transfer-Encoding` header, defined in -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.1) +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.1) /// /// The `Transfer-Encoding` header field lists the transfer coding names /// corresponding to the sequence of transfer codings that have been (or @@ -12,7 +12,7 @@ use crate::util::FlatCsv; /// /// Note that setting this header will *remove* any previously set /// `Content-Length` header, in accordance with -/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2): +/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2): /// /// > A sender MUST NOT send a Content-Length header field in any message /// > that contains a Transfer-Encoding header field. diff --git a/src/common/upgrade.rs b/src/common/upgrade.rs index 9e7216cc..317bc91c 100644 --- a/src/common/upgrade.rs +++ b/src/common/upgrade.rs @@ -1,6 +1,6 @@ use http::HeaderValue; -/// `Upgrade` header, defined in [RFC7230](http://tools.ietf.org/html/rfc7230#section-6.7) +/// `Upgrade` header, defined in [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-6.7) /// /// The `Upgrade` header field is intended to provide a simple mechanism /// for transitioning from HTTP/1.1 to some other protocol on the same diff --git a/src/common/user_agent.rs b/src/common/user_agent.rs index 36e29fd9..b5c6339c 100644 --- a/src/common/user_agent.rs +++ b/src/common/user_agent.rs @@ -4,7 +4,7 @@ use std::str::FromStr; use crate::util::HeaderValueString; /// `User-Agent` header, defined in -/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.3) +/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.3) /// /// The `User-Agent` header field contains information about the user /// agent originating the request, which is often used by servers to help diff --git a/src/disabled/accept.rs b/src/disabled/accept.rs index 7f70ca92..8eec6162 100644 --- a/src/disabled/accept.rs +++ b/src/disabled/accept.rs @@ -3,7 +3,7 @@ use mime::{self, Mime}; use {QualityItem, qitem}; header! { - /// `Accept` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.2) + /// `Accept` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.2) /// /// The `Accept` header field can be used by user agents to specify /// response media types that are acceptable. Accept header fields can diff --git a/src/disabled/accept_charset.rs b/src/disabled/accept_charset.rs index 96eec896..30651581 100644 --- a/src/disabled/accept_charset.rs +++ b/src/disabled/accept_charset.rs @@ -2,7 +2,7 @@ use {Charset, QualityItem}; header! { /// `Accept-Charset` header, defined in - /// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.3) + /// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.3) /// /// The `Accept-Charset` header field can be sent by a user agent to /// indicate what charsets are acceptable in textual response content. diff --git a/src/disabled/accept_encoding.rs b/src/disabled/accept_encoding.rs index 5eb3adf5..8fb416e0 100644 --- a/src/disabled/accept_encoding.rs +++ b/src/disabled/accept_encoding.rs @@ -2,7 +2,7 @@ use {Encoding, QualityItem}; header! { /// `Accept-Encoding` header, defined in - /// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.4) + /// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.4) /// /// The `Accept-Encoding` header field can be used by user agents to /// indicate what response content-codings are diff --git a/src/disabled/accept_language.rs b/src/disabled/accept_language.rs index 4fed0117..0f417563 100644 --- a/src/disabled/accept_language.rs +++ b/src/disabled/accept_language.rs @@ -3,7 +3,7 @@ use QualityItem; header! { /// `Accept-Language` header, defined in - /// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.5) + /// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.5) /// /// The `Accept-Language` header field can be used by user agents to /// indicate the set of natural languages that are preferred in the diff --git a/src/disabled/from.rs b/src/disabled/from.rs index ed00d8e9..2e275f00 100644 --- a/src/disabled/from.rs +++ b/src/disabled/from.rs @@ -1,5 +1,5 @@ header! { - /// `From` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.1) + /// `From` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.1) /// /// The `From` header field contains an Internet email address for a /// human user who controls the requesting user agent. The address ought diff --git a/src/disabled/link.rs b/src/disabled/link.rs index a6d84944..7bf76c2e 100644 --- a/src/disabled/link.rs +++ b/src/disabled/link.rs @@ -11,7 +11,7 @@ use parsing; use {Header, Raw}; /// The `Link` header, defined in -/// [RFC5988](http://tools.ietf.org/html/rfc5988#section-5) +/// [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5) /// /// # ABNF /// @@ -76,7 +76,7 @@ pub struct Link { } /// A single `link-value` of a `Link` header, based on: -/// [RFC5988](http://tools.ietf.org/html/rfc5988#section-5) +/// [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5) #[derive(Clone, PartialEq, Debug)] pub struct LinkValue { /// Target IRI: `link-value`. diff --git a/src/disabled/prefer.rs b/src/disabled/prefer.rs index a6e4dc37..4980b963 100644 --- a/src/disabled/prefer.rs +++ b/src/disabled/prefer.rs @@ -3,7 +3,7 @@ use std::str::FromStr; use {Header, Raw}; use parsing::{from_comma_delimited, fmt_comma_delimited}; -/// `Prefer` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240) +/// `Prefer` header, defined in [RFC7240](https://datatracker.ietf.org/doc/html/rfc7240) /// /// The `Prefer` header field can be used by a client to request that certain /// behaviors be employed by a server while processing a request. diff --git a/src/disabled/preference_applied.rs b/src/disabled/preference_applied.rs index b368bc9b..601a3fec 100644 --- a/src/disabled/preference_applied.rs +++ b/src/disabled/preference_applied.rs @@ -2,7 +2,7 @@ use std::fmt; use {Header, Raw, Preference}; use parsing::{from_comma_delimited, fmt_comma_delimited}; -/// `Preference-Applied` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240) +/// `Preference-Applied` header, defined in [RFC7240](https://datatracker.ietf.org/doc/html/rfc7240) /// /// The `Preference-Applied` response header may be included within a /// response message as an indication as to which `Prefer` header tokens were