Package h
package h
Hypermedea's internal action library, mostly to manipulate URIs.
-
ClassesClassDescription
basic_auth_credentials(Username, Password, Header)
is true ifHeader
is the properAuthorization
header value forUsername
/Password
, as per HTTP basic authentication.expand_template(Tpl, [kv(Var1, Val1), kv(Var2, Val2), ...], URI)
is true ifURI
is the result of expandingTpl
, a URI template, with the mapping provided in the second argument.target(URI, TargetURI)
is true ifTargetURI
has no fragment and is equal toURI
(except for the fragment).