Skip to main content

serve_artifact_request

Function serve_artifact_request 

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

Serves one request from one app artifact root without invoking a shell or C runtime.

§Parameters

§Returns

Returns the computed value produced by crate::artifact_server::serve_artifact_request.

§Examples

ⓘ
let _result = pharos_runtime_static::artifact_server::serve_artifact_request(std::path::Path::new("."), todo!(), "/");