| UriPattern | R Documentation |
uri matcher
pattern(character) pattern holder
regexa logical
query_paramsa list, or NULL if empty
partialbool, default: FALSE
partial_typea string, default: NULL
new()Create a new UriPattern object
UriPattern$new(pattern = NULL, regex_pattern = NULL)
pattern(character) a uri, as a character string. if scheme is missing, it is added (we assume http)
regex_pattern(character) a uri as a regex character string, see base::regex. if scheme is missing, it is added (we assume http)
A new UriPattern object
matches()Match a uri against a pattern
UriPattern$matches(uri)
uri(character) a uri
a boolean
pattern_matches()Match a URI
UriPattern$pattern_matches(uri)
uri(character) a uri
a boolean
query_params_matches()Match query parameters of a URI
UriPattern$query_params_matches(uri)
uri(character) a uri
a boolean
extract_query()Extract query parameters as a named list
UriPattern$extract_query(uri)
uri(character) a uri
named list, or NULL if no query parameters
add_query_params()Add query parameters to the URI
UriPattern$add_query_params(query_params)
query_params(list|character) list or character
nothing returned, updates uri pattern
to_s()Print pattern for easy human consumption
UriPattern$to_s()
a string
clone()The objects of this class are cloneable with this method.
UriPattern$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.