pub fn serve_static_file(
root: &Path,
method: &str,
target: &str,
) -> StaticResponseExpand description
Serves one validated static request from a packaged artifact root.
§Parameters
root: Input consumed bycrate::binaries::serve_static_file.method: Input consumed bycrate::binaries::serve_static_file.target: Input consumed bycrate::binaries::serve_static_file.
§Returns
Returns the computed value produced by crate::binaries::serve_static_file.
§Examples
ⓘ
let _result = pharos_native::binaries::serve_static_file(std::path::Path::new("."), todo!(), "/");§Related
crate::binariesfor adjacent helpers that share the same runtime surface.