Skip to main content

serve_static_file

Function serve_static_file 

Source
pub fn serve_static_file(
    root: &Path,
    method: &str,
    target: &str,
) -> StaticResponse
Expand description

Serves one validated static request from a packaged artifact root.

§Parameters

§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!(), "/");
  • crate::binaries for adjacent helpers that share the same runtime surface.