Expand description
Filesystem helpers for resolving URL paths onto JSON-compatible files.
§Why these live in server, not routing
Pre-5.0 these sat alongside json_value_by_jsonpath in
core::util::json. But resolve_with_json_compatible_extensions
and is_equivalent_json_file both touch the filesystem to answer
“does this path exist as a file?”. That’s a server-layer activity —
the routing layer stays abstract and doesn’t care where bytes come
from — so they moved here in 5.0.
Constants§
- ROOT_
DIRECTORY_ FILE_ NAME - Directory index filename (same spirit as
index.html).
Functions§
- resolve_
with_ json_ compatible_ extensions - Try to resolve a user-visible URL path onto a real file on disk.