Hwaro::Models::RemoteDataConfig
One [[data.remote]] entry — a declarative remote data source fetched
once per build (before render) into site.data.<key>. This class is
the validated config shape; fetching, caching and error handling live
in Core::Build::RemoteData. See docs/content/templates/data-model.md.
Constants
Accepted format values (also the set inference can produce).
Accepted on_error modes.
Constructors
Instance methods
Disk-cache TTL; nil = refetch on every build. The cache file is
written either way so on_error = "warn-and-use-cache" always has a
fallback once one fetch has succeeded.
Disk-cache TTL; nil = refetch on every build. The cache file is
written either way so on_error = "warn-and-use-cache" always has a
fallback once one fetch has succeeded.
Explicit payload format; nil = infer from the response Content-Type, then from the URL's path extension, at fetch time.
Explicit payload format; nil = infer from the response Content-Type, then from the URL's path extension, at fetch time.
Extra request headers (values already env-substituted). Treated as credentials: never logged, and dropped on cross-origin redirects.
Extra request headers (values already env-substituted). Treated as credentials: never logged, and dropped on cross-origin redirects.
Template-facing name: the payload lands at site.data.<key>. Also
used as the cache filename, hence the restricted character set.