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
(defaults to"5m"
) (optional)- time how long the entry is to be cached
- -default
(optional)- Returns:
- body of the request
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.