Skip to content

Commit 690cc45

Browse files
glendcseanmonstar
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.

0 commit comments

Comments
 (0)