Skip to content

Commit 961bccb

Browse files
committed
feature: enable Link support
This commit enables the `link` module. This implementation is not ready to be merged yet and needs more fixes to address feedback from [the previous PR attempting to enable `Link` support](hyperium#113)
1 parent 725b45d commit 961bccb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ http = "1.0.0"
2020
headers-core = { version = "0.3", path = "./headers-core" }
2121
base64 = "0.22"
2222
bytes = "1"
23+
language-tags = "0.3.2"
2324
mime = "0.3.14"
2425
sha1 = "0.10"
2526
httpdate = "1"

src/disabled/link.rs renamed to src/common/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,5 @@ mod tests {
11051105
assert_eq!(err.is_err(), true);
11061106
}
11071107

1108-
// the `bench_header` macro is defined in `crate::common`, not available in `crate::disabled`
1109-
// bench_header!(bench_link, Link, b"<http://example.com/TheBook/chapter2>; rel=\"previous\"; rev=next; title=\"previous chapter\"; type=\"text/html\"; media=\"screen, tty\"");
1108+
bench_header!(bench_link, Link, b"<http://example.com/TheBook/chapter2>; rel=\"previous\"; rev=next; title=\"previous chapter\"; type=\"text/html\"; media=\"screen, tty\"");
11101109
}

src/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ mod if_range;
165165
mod if_unmodified_since;
166166
//mod last_event_id;
167167
mod last_modified;
168-
//mod link;
168+
pub mod link;
169169
mod location;
170170
mod origin;
171171
mod pragma;

0 commit comments

Comments
 (0)