Skip to main content

link_header_alternate

Function link_header_alternate 

Source
pub fn link_header_alternate(headers: &HeaderMap) -> Option<String>
Expand description

The target of the first Link header’s rel="alternate" entry of an ACTIVITY_LINK_TYPES type, as written.

As in Mastodon, only the first Link header is read when there are several, and application/activity+json is looked for across all its entries before the JSON-LD spelling: the order of the types decides, not the order of the links.