Function serve_memory_file

Source
pub fn serve_memory_file(
    path: &'static str,
    bytes: &'static [u8],
    req: &Request,
    caching: Option<Caching>,
) -> Result<Response>
Available on crate feature fs only.