7.7
8.9 Web Links
(require rebellion/web-link) | package: rebellion |
A web link is a relationship between two resources, represented as a source-relationship-target triple. See RFC 8288 - Web Linking for more information on the purpose and uses of links.
A predicate for web links.
procedure
source : (or/c url? string?) relation : (or/c symbol? url? string?) target : (or/c url? string?)
Example:
> (web-link "http://example.org" 'stylesheet "/styles.css") (web-link "http://example.org" 'stylesheet "/styles.css")
procedure
(web-link-source link) → url?
link : web-link?
procedure
(web-link-relation link) → (or/c symbol? url?)
link : web-link?
procedure
(web-link-target link) → url?
link : web-link?
Accessors for the various components of a web link.