Function parse_link_header::parse_with_rel
source ·
[−]pub fn parse_with_rel(link_header: &str) -> Result<RelLinkMap>
Expand description
Parse link header into a RelLinkMap
.
Takes a &str
which is the value of the HTTP Link:
header, attempts to parse it, and returns
a Result<RelLinkMap>
which represents the mapping between the relationship and the link entry.