template: Returns the set of keywords in a uri template

View source: R/UriTemplate.R

templateR Documentation

Returns the set of keywords in a uri template

Description

Returns the set of keywords in a uri template

Usage

template(uri = "")

Arguments

uri

(character) any URI

Examples

## Not run: 
# no URI given
x <- template()
x
x$port_mapping
x$ip_based_schemes

# give a URI
x <- template("http:.//example.com/foo/bar")
x
x$pattern
## parse it
# x$parse()
# x$uri_parsed

# join
# base <- "http://example.com"
# uri <- template("relative/path")
# uri$parse()
# uri$join(base, uri)

## End(Not run)

ropenscilabs/urltemplate documentation built on May 18, 2022, 8:33 p.m.