Skip to main content

link_headers

Function link_headers 

Source
pub fn link_headers(path: &str) -> Vec<String>
Expand description

Build the full set of Link headers for a given resource path.

Emits:

  • <ldp:Resource>; rel="type" always.
  • <ldp:Container>; rel="type" + <ldp:BasicContainer>; rel="type" for containers.
  • <path.acl>; rel="acl" for every resource except the ACL itself.
  • <path.meta>; rel="describedby" for every non-meta resource.
  • </>; rel="http://www.w3.org/ns/pim/space#storage" for the pod root.