Skip to main content

with_file

Function with_file 

Source
pub fn with_file(path: &str) -> Option<Respond>
Expand description

Will return a Respond struct containing information to send a file, like an image, text, or json file

ยงExample

respond(&mut stream, 200u16, with_file("/path/to/file.png"))