Skip to main content

http_post_bytes

Function http_post_bytes 

Source
pub fn http_post_bytes(url: &str, body: &[u8]) -> Result<(), HybridStorageError>
Expand description

Plain HTTP POST of body to an absolute URL (the managed-file engine’s write mirror: when the GAME writes a managed file, the engine posts the new bytes to the file’s own remote URL). The response body is discarded; any non-2xx is an error.

§Errors

Transport failures and non-2xx statuses map to HybridStorageError::IoError / HybridStorageError::UploadFailed.