pub fn serve_app_streamable_asset(
app: &AppRuntime,
method: &str,
target: &str,
range: Option<&str>,
if_range: Option<&str>,
) -> Result<Option<StreamResponse>, StreamError>Expand description
Resolves one direct app asset into a bounded streaming response.
§Parameters
app: Application runtime whose packaged artifact tree is being served.method: HTTP method for the asset request.target: Request path for the requested asset.range: Optional byte-range request header.if_range: Optional conditional range header.
§Returns
Returns a streaming response when the asset exists and is streamable.
§Errors
Returns an error when range parsing or stream preparation fails.
§Examples
ⓘ
let _result = pharos_native::binaries::artifact_server::serve_app_streamable_asset(todo!(), todo!(), "/", todo!(), todo!());§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.