Link
Specifies a link relationship between documents.
Link typically specifies a relationship @rel from the current document to another document; Link can also be used to specify a relationship @rev from other documents to this one, or between any two documents using @about.
Links found in this header have the same semantic meaning as links found in hypermedia (HTML) documents themselves.
Overview table
- Name
- Link
- Description
- Attaches a link to the message.
- Direction
- Both
- Specification
- RFC 7231: Web Linking
Parsing
Node.js
- http-link
- parse-links
- https://github.com/wombleton/link-headers
- https://github.com/backbone-paginator/backbone-pageable/blob/master/lib/backbone-pageable.js
Syntax
Link = #link-value
link-value = "<" URI-Reference ">" *( OWS ";" OWS link-param )
link-param = token BWS [ "=" BWS ( token / quoted-string ) ]
Example
Link: <http://example.com/TheBook/chapter2> rel="previous"; title="previous chapter"