util::resources::http_get_with_default (private)

 util::resources::http_get_with_default -url url -key key \
    [ -expires expires ] [ -default default ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

Run an HTTP request, which might not be always possible (e.g., when the site has no Internet connection). Therefore, the call will return a default value. This function is to be called for non-essential calls, like e.g. obtaining the newest version of library, etc. The result is cached by default for 5 minutes.

Switches:
-url (required)
URL for the GET request
-key (required)
cache key
-expires (optional, defaults to "5m")
time how long the entry is to be cached
-default (optional)
Returns:
body of the request

Partial Call Graph (max 5 caller/called nodes):
%3 util::resources::cdnjs_get_newest_version util::resources::cdnjs_get_newest_version (public) util::resources::http_get_with_default util::resources::http_get_with_default util::resources::cdnjs_get_newest_version->util::resources::http_get_with_default util::resources::check_vulnerability util::resources::check_vulnerability (public) util::resources::check_vulnerability->util::resources::http_get_with_default util::http::get util::http::get (public) util::resources::http_get_with_default->util::http::get

Testcases:
No testcase defined.
[ show source ]
Show another procedure: