Skip to content

Commit 690cc45

Browse files
glendcseanmonstar
glendc
authored andcommitted
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
1 parent 1b4efe2 commit 690cc45

31 files changed

+34
-34
lines changed

src/common/accept_ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use http::HeaderValue;
22

33
use crate::util::FlatCsv;
44

5-
/// `Accept-Ranges` header, defined in [RFC7233](http://tools.ietf.org/html/rfc7233#section-2.3)
5+
/// `Accept-Ranges` header, defined in [RFC7233](https://datatracker.ietf.org/doc/html/rfc7233#section-2.3)
66
///
77
/// The `Accept-Ranges` header field allows a server to indicate that it
88
/// supports range requests for the target resource.

src/common/allow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use http::{HeaderValue, Method};
44

55
use crate::util::FlatCsv;
66

7-
/// `Allow` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.1)
7+
/// `Allow` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1)
88
///
99
/// The `Allow` header field lists the set of methods advertised as
1010
/// supported by the target resource. The purpose of this field is

src/common/connection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use self::sealed::AsConnectionOption;
66
use crate::util::FlatCsv;
77

88
/// `Connection` header, defined in
9-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-6.1)
9+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-6.1)
1010
///
1111
/// The `Connection` header field allows the sender to indicate desired
1212
/// control options for the current connection. In order to avoid

src/common/content_encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use self::sealed::AsCoding;
44
use crate::util::FlatCsv;
55

66
/// `Content-Encoding` header, defined in
7-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-3.1.2.2)
7+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.2.2)
88
///
99
/// The `Content-Encoding` header field indicates what content codings
1010
/// have been applied to the representation, beyond those inherent in the

src/common/content_length.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use http::HeaderValue;
33
use crate::{Error, Header};
44

55
/// `Content-Length` header, defined in
6-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2)
6+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2)
77
///
88
/// When a message does not have a `Transfer-Encoding` header field, a
99
/// Content-Length header field can provide the anticipated size, as a
@@ -16,7 +16,7 @@ use crate::{Error, Header};
1616
///
1717
/// Note that setting this header will *remove* any previously set
1818
/// `Transfer-Encoding` header, in accordance with
19-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2):
19+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2):
2020
///
2121
/// > A sender MUST NOT send a Content-Length header field in any message
2222
/// > that contains a Transfer-Encoding header field.

src/common/content_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use mime::Mime;
66
use crate::{Error, Header};
77

88
/// `Content-Type` header, defined in
9-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-3.1.1.5)
9+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5)
1010
///
1111
/// The `Content-Type` header field indicates the media type of the
1212
/// associated representation: either the representation enclosed in the

src/common/cookie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::util::{FlatCsv, SemiColon};
22

3-
/// `Cookie` header, defined in [RFC6265](http://tools.ietf.org/html/rfc6265#section-5.4)
3+
/// `Cookie` header, defined in [RFC6265](https://datatracker.ietf.org/doc/html/rfc6265#section-5.4)
44
///
55
/// If the user agent does attach a Cookie header field to an HTTP
66
/// request, the user agent must send the cookie-string

src/common/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::time::SystemTime;
22

33
use crate::util::HttpDate;
44

5-
/// `Date` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.1.2)
5+
/// `Date` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.1.2)
66
///
77
/// The `Date` header field represents the date and time at which the
88
/// message was originated.

src/common/etag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::str::FromStr;
22

33
use crate::util::EntityTag;
44

5-
/// `ETag` header, defined in [RFC7232](http://tools.ietf.org/html/rfc7232#section-2.3)
5+
/// `ETag` header, defined in [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-2.3)
66
///
77
/// The `ETag` header field in a response provides the current entity-tag
88
/// for the selected representation, as determined at the conclusion of

src/common/expires.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::time::SystemTime;
22

33
use crate::util::HttpDate;
44

5-
/// `Expires` header, defined in [RFC7234](http://tools.ietf.org/html/rfc7234#section-5.3)
5+
/// `Expires` header, defined in [RFC7234](https://datatracker.ietf.org/doc/html/rfc7234#section-5.3)
66
///
77
/// The `Expires` header field gives the date/time after which the
88
/// response is considered stale.

src/common/if_modified_since.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::util::HttpDate;
22
use std::time::SystemTime;
33

44
/// `If-Modified-Since` header, defined in
5-
/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-3.3)
5+
/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-3.3)
66
///
77
/// The `If-Modified-Since` header field makes a GET or HEAD request
88
/// method conditional on the selected representation's modification date

src/common/if_range.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::{ETag, LastModified};
66
use crate::util::{EntityTag, HttpDate, TryFromValues};
77
use crate::Error;
88

9-
/// `If-Range` header, defined in [RFC7233](http://tools.ietf.org/html/rfc7233#section-3.2)
9+
/// `If-Range` header, defined in [RFC7233](https://datatracker.ietf.org/doc/html/rfc7233#section-3.2)
1010
///
1111
/// If a client has a partial copy of a representation and wishes to have
1212
/// an up-to-date copy of the entire representation, it could use the

src/common/if_unmodified_since.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::util::HttpDate;
22
use std::time::SystemTime;
33

44
/// `If-Unmodified-Since` header, defined in
5-
/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-3.4)
5+
/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-3.4)
66
///
77
/// The `If-Unmodified-Since` header field makes the request method
88
/// conditional on the selected representation's last modification date

src/common/last_modified.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::util::HttpDate;
22
use std::time::SystemTime;
33

44
/// `Last-Modified` header, defined in
5-
/// [RFC7232](http://tools.ietf.org/html/rfc7232#section-2.2)
5+
/// [RFC7232](https://datatracker.ietf.org/doc/html/rfc7232#section-2.2)
66
///
77
/// The `Last-Modified` header field in a response provides a timestamp
88
/// indicating the date and time at which the origin server believes the

src/common/location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use http::HeaderValue;
22

33
/// `Location` header, defined in
4-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.2)
4+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.2)
55
///
66
/// The `Location` header field is used in some responses to refer to a
77
/// specific resource in relation to the response. The type of

src/common/referer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::str::FromStr;
44
use crate::util::HeaderValueString;
55

66
/// `Referer` header, defined in
7-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.2)
7+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.2)
88
///
99
/// The `Referer` \[sic\] header field allows the user agent to specify a
1010
/// URI reference for the resource from which the target URI was obtained

src/common/retry_after.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::Error;
2424
/// let date = RetryAfter::date(SystemTime::now());
2525
/// ```
2626
27-
/// Retry-After header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.3)
27+
/// Retry-After header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.1.3)
2828
#[derive(Debug, Clone, PartialEq, Eq)]
2929
pub struct RetryAfter(After);
3030

src/common/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::str::FromStr;
33

44
use crate::util::HeaderValueString;
55

6-
/// `Server` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.2)
6+
/// `Server` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.2)
77
///
88
/// The `Server` header field contains information about the software
99
/// used by the origin server to handle the request, which is often used

src/common/set_cookie.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use http::{HeaderName, HeaderValue};
22

33
use crate::{Error, Header};
44

5-
/// `Set-Cookie` header, defined [RFC6265](http://tools.ietf.org/html/rfc6265#section-4.1)
5+
/// `Set-Cookie` header, defined [RFC6265](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1)
66
///
77
/// The Set-Cookie HTTP response header is used to send cookies from the
88
/// server to the user agent.

src/common/te.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use http::HeaderValue;
33
use crate::util::FlatCsv;
44

55
/// `TE` header, defined in
6-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-4.3)
6+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-4.3)
77
///
88
/// As RFC7230 states, "The "TE" header field in a request indicates what transfer codings,
99
/// besides chunked, the client is willing to accept in response, and

src/common/transfer_encoding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use http::HeaderValue;
33
use crate::util::FlatCsv;
44

55
/// `Transfer-Encoding` header, defined in
6-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.1)
6+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.1)
77
///
88
/// The `Transfer-Encoding` header field lists the transfer coding names
99
/// corresponding to the sequence of transfer codings that have been (or
@@ -12,7 +12,7 @@ use crate::util::FlatCsv;
1212
///
1313
/// Note that setting this header will *remove* any previously set
1414
/// `Content-Length` header, in accordance with
15-
/// [RFC7230](http://tools.ietf.org/html/rfc7230#section-3.3.2):
15+
/// [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2):
1616
///
1717
/// > A sender MUST NOT send a Content-Length header field in any message
1818
/// > that contains a Transfer-Encoding header field.

src/common/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use http::HeaderValue;
22

3-
/// `Upgrade` header, defined in [RFC7230](http://tools.ietf.org/html/rfc7230#section-6.7)
3+
/// `Upgrade` header, defined in [RFC7230](https://datatracker.ietf.org/doc/html/rfc7230#section-6.7)
44
///
55
/// The `Upgrade` header field is intended to provide a simple mechanism
66
/// for transitioning from HTTP/1.1 to some other protocol on the same

src/common/user_agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::str::FromStr;
44
use crate::util::HeaderValueString;
55

66
/// `User-Agent` header, defined in
7-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.3)
7+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.3)
88
///
99
/// The `User-Agent` header field contains information about the user
1010
/// agent originating the request, which is often used by servers to help

src/disabled/accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use mime::{self, Mime};
33
use {QualityItem, qitem};
44

55
header! {
6-
/// `Accept` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.2)
6+
/// `Accept` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.2)
77
///
88
/// The `Accept` header field can be used by user agents to specify
99
/// response media types that are acceptable. Accept header fields can

src/disabled/accept_charset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use {Charset, QualityItem};
22

33
header! {
44
/// `Accept-Charset` header, defined in
5-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.3)
5+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.3)
66
///
77
/// The `Accept-Charset` header field can be sent by a user agent to
88
/// indicate what charsets are acceptable in textual response content.

src/disabled/accept_encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use {Encoding, QualityItem};
22

33
header! {
44
/// `Accept-Encoding` header, defined in
5-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.4)
5+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.4)
66
///
77
/// The `Accept-Encoding` header field can be used by user agents to
88
/// indicate what response content-codings are

src/disabled/accept_language.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use QualityItem;
33

44
header! {
55
/// `Accept-Language` header, defined in
6-
/// [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.3.5)
6+
/// [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.5)
77
///
88
/// The `Accept-Language` header field can be used by user agents to
99
/// indicate the set of natural languages that are preferred in the

src/disabled/from.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
header! {
2-
/// `From` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-5.5.1)
2+
/// `From` header, defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.1)
33
///
44
/// The `From` header field contains an Internet email address for a
55
/// human user who controls the requesting user agent. The address ought

src/disabled/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use parsing;
1111
use {Header, Raw};
1212

1313
/// The `Link` header, defined in
14-
/// [RFC5988](http://tools.ietf.org/html/rfc5988#section-5)
14+
/// [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5)
1515
///
1616
/// # ABNF
1717
///
@@ -76,7 +76,7 @@ pub struct Link {
7676
}
7777

7878
/// A single `link-value` of a `Link` header, based on:
79-
/// [RFC5988](http://tools.ietf.org/html/rfc5988#section-5)
79+
/// [RFC5988](https://datatracker.ietf.org/doc/html/rfc5988#section-5)
8080
#[derive(Clone, PartialEq, Debug)]
8181
pub struct LinkValue {
8282
/// Target IRI: `link-value`.

src/disabled/prefer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::str::FromStr;
33
use {Header, Raw};
44
use parsing::{from_comma_delimited, fmt_comma_delimited};
55

6-
/// `Prefer` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240)
6+
/// `Prefer` header, defined in [RFC7240](https://datatracker.ietf.org/doc/html/rfc7240)
77
///
88
/// The `Prefer` header field can be used by a client to request that certain
99
/// behaviors be employed by a server while processing a request.

src/disabled/preference_applied.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::fmt;
22
use {Header, Raw, Preference};
33
use parsing::{from_comma_delimited, fmt_comma_delimited};
44

5-
/// `Preference-Applied` header, defined in [RFC7240](http://tools.ietf.org/html/rfc7240)
5+
/// `Preference-Applied` header, defined in [RFC7240](https://datatracker.ietf.org/doc/html/rfc7240)
66
///
77
/// The `Preference-Applied` response header may be included within a
88
/// response message as an indication as to which `Prefer` header tokens were

0 commit comments

Comments
 (0)