On this page:
web-link?
web-link
web-link-source
web-link-relation
web-link-target
7.3

15 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.

procedure

(web-link? v)  boolean?

  v : any/c
A predicate for web links.

procedure

(web-link source relation target)  web-link?

  source : (or/c url? string?)
  relation : (or/c symbol? url? string?)
  target : (or/c url? string?)
Constructs a web link from source to target with type relation.

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.