pub fn write_request( w: &mut impl Write, pid: u32, carafe_path: &str, carafe_image: &[u8], ready_token: &str, ) -> Result<()>