Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/header/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pub use self::name::{
IF_RANGE,
IF_UNMODIFIED_SINCE,
LAST_MODIFIED,
KEEP_ALIVE,
LINK,
LOCATION,
MAX_FORWARDS,
Expand Down
6 changes: 6 additions & 0 deletions src/header/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,12 @@ standard_headers! {
/// The value is a valid Date/Time string defined in [RFC9910](https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.7)
(LastModified, LAST_MODIFIED, b"last-modified");

/// Non-standard HTTP header.
/// Hint about how the connection and may be used to set a timeout and a
/// maximum amount of requests.
#[doc(hidden)]
(KeepAlive, KEEP_ALIVE, b"keep-alive");

/// Allows the server to point an interested client to another resource
/// containing metadata about the requested resource.
(Link, LINK, b"link");
Expand Down
1 change: 1 addition & 0 deletions tests/header_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ const STD: &'static [HeaderName] = &[
IF_RANGE,
IF_UNMODIFIED_SINCE,
LAST_MODIFIED,
KEEP_ALIVE,
LINK,
LOCATION,
MAX_FORWARDS,
Expand Down
1 change: 1 addition & 0 deletions tests/header_map_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ fn gen_header_name(g: &mut StdRng) -> HeaderName {
header::IF_RANGE,
header::IF_UNMODIFIED_SINCE,
header::LAST_MODIFIED,
header::KEEP_ALIVE,
header::LINK,
header::LOCATION,
header::MAX_FORWARDS,
Expand Down