pub fn serve_private_asset(
root: &Path,
private_root: &str,
asset_key: &str,
method: &str,
range: Option<&str>,
if_range: Option<&str>,
) -> Result<StreamResponse, StreamError>Expand description
Resolves one already-authorized private asset key into a streaming plan.
§Parameters
root: Input consumed bycrate::artifact_server::serve_private_asset.private_root: Input consumed bycrate::artifact_server::serve_private_asset.asset_key: Input consumed bycrate::artifact_server::serve_private_asset.method: Input consumed bycrate::artifact_server::serve_private_asset.range: Input consumed bycrate::artifact_server::serve_private_asset.if_range: Input consumed bycrate::artifact_server::serve_private_asset.
§Returns
Returns the successful value produced by crate::artifact_server::serve_private_asset or an error when the operation fails.
§Errors
Returns an error value when crate::artifact_server::serve_private_asset cannot complete successfully.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::artifact_server::serve_private_asset.
§Examples
ⓘ
let _result = pharos_runtime_static::artifact_server::serve_private_asset(std::path::Path::new("."), todo!(), todo!(), todo!(), todo!(), todo!());§Related
crate::artifact_serverfor adjacent helpers that share the same runtime surface.