object
uri_template(Representation)
Representation- URI template, variable name, variable value, and expansion representation. Valid values areatom,codes, andchars.
URI template validation, variable enumeration, and expansion predicates implementing RFC 6570.
logtalk_load(uri_template(loader))static, context_switching_callsPublic predicates
valid/1
True iff the argument is a valid RFC 6570 URI template.
staticvalid(Template)valid(++text) - zero_or_onevariables/2
Returns the unique template variable names in first-seen order.
staticvariables(Template,Variables)variables(++text,-list(text)) - zero_or_oneexpand/3
Expands a valid RFC 6570 URI template using a list of Name-Value bindings. Values are represented by undefined, string(Text), list(Texts), assoc(Pairs), or structure(Pairs) terms.
staticexpand(Template,Bindings,Expansion)expand(++text,+list(pair),-text) - zero_or_oneexpand/4
Expands an RFC 6570 URI template while recovering from template syntax errors. Malformed expressions are copied unexpanded and processing continues. For an invalid literal or unterminated expression, the unprocessed remainder is copied and processing stops. Errors are returned as zero-based error(Position, Reason) terms.
staticexpand(Template,Bindings,Expansion,Errors)expand(++text,+list(pair),-text,-list(compound)) - zero_or_oneProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
(no local declarations; see entity ancestors if any)
Operators
(none)