Expand description
§uri-template-system-core
This package is an internal implementation package - it shouldn’t be consumed as a direct dependency. Please see uri-template-system for the top-level package intended for use.
Structs§
- Template
- The
Template
type is the basis for most simple tasks. Parsing and expansion are both template functions. - Values
- The
Values
type is used as the source of content during template expansion, and is a logical map of keys to typedValue
(which may or may not be present during expansion).
Enums§
- Expand
Error - An
Error
compatible type which may be the result of a failure ofTemplate::expand
(given a validTemplate
and providedValues
). - Parse
Error - An
Error
compatible type which may be the result of a failure ofTemplate::parse
, likely due to an invalid URI Template format (as defined by the grammar given in RFC6570). - Value
- The
Value
type is used as the source of content during template expansion, as part of aValues
collection. It maps to the three valid shapes of data defined by the RFC (a single item, a list of items, or a list of key/value pairs).