Skip to main content

spool_request_body_to_temp_file

Function spool_request_body_to_temp_file 

Source
pub fn spool_request_body_to_temp_file(path: &Path, body: &[u8]) -> i32
Expand description

Spools a bounded request body to a caller-selected temporary path.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::ops_bridge::spool_request_body_to_temp_file.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::spool_request_body_to_temp_file(std::path::Path::new("fixture.json"), b"");