Skip to main content

Appendix B. Notes on Using the Link Header with Atom

The Link HTTP header can express relationships equivalent to Atom's atom:link element.

Atom defines links with:

  • href - Target IRI
  • rel - Relation type
  • type - Media type hint
  • hreflang - Language hint
  • title - Human-readable label
  • length - Resource size hint

Direct Mappings

`<!-- Atom -->`
<link href="next.xml" rel="next"
type="application/atom+xml"
hreflang="en"
title="Next Page"/>

`<!-- HTTP Header Equivalent -->`
Link: ``<next.xml>``; rel="next";
type="application/atom+xml";
hreflang="en";
title="Next Page"

Considerations

  • length attribute: No direct HTTP header equivalent
  • Multiple links: Separate by commas in HTTP header
  • Feed-level vs entry-level: HTTP headers are resource-level

This specification establishes unified registry for:

  • Atom link relations
  • HTML link relations
  • General web link relations

Previous Atom-specific registry superseded by broader Link Relation Type Registry.


Reference: RFC 4287 (Atom Syndication Format)