uri_template v1.2.1 UriTemplate.VarSpec
Represents a single varspec from a URI template expression.
Link to this section Summary
Functions
Returns a tuple with :ok
followed by URI encoded value of the variable
specified. If there is no such variable (or its value is blank :missing
is returned
Parses varspec_str
and returns a `UriTemplate.VarSpec struct representing
it
Returns the URI encoded value of the variable specified, or the default
Link to this section Functions
Link to this function
fetch(vars, varspec, encode_value? \\ true)
Returns a tuple with :ok
followed by URI encoded value of the variable
specified. If there is no such variable (or its value is blank :missing
is returned
Link to this function
from_string(varspec_str)
Parses varspec_str
and returns a `UriTemplate.VarSpec struct representing
it.
Link to this function
get(vars, varspec, default \\ "", encode_value? \\ true)
Returns the URI encoded value of the variable specified, or the default