UriTemplate.parse

UriTemplate parse(string templateString) @safe

Parse an RFC 6570 URI Template string into an AST.

Parses literal text and expressions of the form `{` [operator] varspec *( "," varspec ) `}`.

Parameters

templateStringTemplate string to parse.

Returns

The parsed UriTemplate.

Throws

UriTemplateException on invalid syntax.