Skip to content

Commit b073d8d

Browse files
authored
Merge pull request #223 from http-rs/update-headers-copy
Update headers copy
2 parents 6a263e1 + f4976a7 commit b073d8d

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

src/cache/age.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::time::Duration;
99
///
1010
/// # Specifications
1111
///
12-
/// - [RFC 7234 Hypertext Transfer Protocol (HTTP/1.1): Caching](https://tools.ietf.org/html/rfc7234#section-5.1)
12+
/// - [RFC 7234, section 5.1: Age](https://tools.ietf.org/html/rfc7234#section-5.1)
1313
///
1414
/// # Examples
1515
///
@@ -52,10 +52,6 @@ impl Age {
5252
}
5353

5454
/// Create an instance of `Age` from a `Headers` instance.
55-
///
56-
/// # Implementation note
57-
///
58-
/// A header value of `"null"` is treated the same as if no header was sent.
5955
pub fn from_headers(headers: impl AsRef<Headers>) -> crate::Result<Option<Self>> {
6056
let headers = match headers.as_ref().get(AGE) {
6157
Some(headers) => headers,

src/cache/cache_control/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
//!
33
//! # Specifications
44
//!
5-
//! - [RFC 5861: HTTP Cache-Control Extensions for Stale Content](https://tools.ietf.org/html/rfc5861)
6-
//! - [RFC 7234: Hypertext Transfer Protocol (HTTP/1.1): Caching](https://tools.ietf.org/html/rfc7234)
75
//! - [RFC 8246: HTTP Immutable Responses](https://tools.ietf.org/html/rfc8246)
6+
//! - [RFC 7234: Hypertext Transfer Protocol (HTTP/1.1): Caching](https://tools.ietf.org/html/rfc7234)
7+
//! - [RFC 5861: HTTP Cache-Control Extensions for Stale Content](https://tools.ietf.org/html/rfc5861)
88
99
#[allow(clippy::module_inception)]
1010
mod cache_control;

src/conditional/etag.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::option;
1111
///
1212
/// # Specifications
1313
///
14-
/// - [RFC 7232 HTTP/1.1: Conditional Requests](https://tools.ietf.org/html/rfc7232#section-2.3)
14+
/// - [RFC 7232, section 2.3: ETag](https://tools.ietf.org/html/rfc7232#section-2.3)
1515
///
1616
/// # Examples
1717
///

src/trace/server_timing/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ use crate::headers::{HeaderName, HeaderValue, Headers, ToHeaderValues, SERVER_TI
3737

3838
/// Metrics and descriptions for the given request-response cycle.
3939
///
40-
/// This is an implementation of the W3C [Server
41-
/// Timing](https://w3c.github.io/server-timing/#the-server-timing-header-field)
42-
/// header spec. Read more on
43-
/// [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing).
40+
/// # Specifications
41+
///
42+
/// - [Server Timing (Working Draft)](https://w3c.github.io/server-timing/#the-server-timing-header-field)
4443
///
4544
/// # Examples
4645
///

src/trace/trace_context.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ use crate::Status;
66

77
/// Extract and apply [Trace-Context](https://w3c.github.io/trace-context/) headers.
88
///
9+
/// # Specifications
10+
///
11+
/// - [Trace-Context (Working Draft)](https://w3c.github.io/trace-context/)
12+
///
913
/// # Examples
1014
///
1115
/// ```

0 commit comments

Comments
 (0)