Function iron_send_file::send_file
[−]
[src]
pub fn send_file(req: &Request, res: Response, path: &Path) -> IronResult<Response>
Send file
Request is needed for Range
header.
Response parameter allows setting custom headers for response.
Path is path of the file to be served.