Skip to content

Commit de9aa78

Browse files
bavshin-f5Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 59aa6db commit de9aa78

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/acme/headers.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ use ngx::collections::Vec;
55

66
use crate::time::Time;
77

8+
/// Represents an RFC8288 Link header value.
9+
///
10+
/// The `Link` header is used to indicate relationships between resources, as defined in [RFC8288](https://datatracker.ietf.org/doc/html/rfc8288).
811
pub struct Link<'a> {
12+
/// The URI reference target of the link.
913
pub target: &'a UriReferenceStr,
14+
/// The relationship types (the `rel` parameter) associated with the link.
1015
pub rel: Vec<&'a str>,
1116
}
1217

@@ -16,6 +21,7 @@ impl Link<'_> {
1621
}
1722
}
1823

24+
/// An iterator over Link header values parsed from an RFC8288-compliant Link header string.
1925
pub struct LinkIter<'a>(&'a str);
2026

2127
impl<'a> LinkIter<'a> {

0 commit comments

Comments
 (0)