(rfc uri-template) - URI template

Library (rfc uri-template)

This library provides RFC6570 'URI Template' procedures.

Function parse-uri-template in

Parses the given URI template into S-expression.

The given in must be either a textual input port or a string.

The parsed form consists with the following rules:

operator must be a valid URI template operator

(parse-uri-template "http://{domain*}/{/path}") 
(http:// ((domain \*)) / (/ path))

Function expand-uri-template uri-template parameter

Expands the given uri-template and returns a string.

The parameter must be a vector of pair of string and value.

The value must be one of the followings:

(expand-uri-template '((#\? ("keys" *))) '#(("keys" . #(("semi" . ";") ("dot" . ".") ("comma" . ","))))) 
?semi=%3B&dot=.&comma=%2C