Skip to main content

write_temp_body_file

Function write_temp_body_file 

Source
pub fn write_temp_body_file(body: Option<&[u8]>) -> Result<PathBuf, i32>
Expand description

Writes a bounded request body to a uniquely-created temporary file.

§Parameters

§Returns

Returns the successful value produced by crate::runtime::ops_bridge::write_temp_body_file or an error when the operation fails.

§Errors

Returns an error value when crate::runtime::ops_bridge::write_temp_body_file cannot complete successfully.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::write_temp_body_file(b"");