pub fn serve(self) -> Response {
        use iron::headers::{CacheControl, LastModified, CacheDirective, HttpDate, ContentType};

        let mut response = Response::with((status::Ok, self.content));
        let cache = vec![CacheDirective::Public,
                         CacheDirective::MaxAge(super::STATIC_FILE_CACHE_DURATION as u32)];
        response.headers.set(ContentType(self.mime.parse().unwrap()));
        response.headers.set(CacheControl(cache));
        response.headers.set(LastModified(HttpDate(time::at(self.date_updated))));
        response
    }
/// Consumes File and creates a iron response
Consumes File and creates a iron response
Consumes File and creates a iron response
pub fn serve(self) -> Response {
        use iron::headers::{CacheControl, LastModified, CacheDirective, HttpDate, ContentType};
        let mut response = Response::with((status::Ok, self.content));
        let cache = vec![CacheDirective::Public,
                         CacheDirective::MaxAge(super::STATIC_FILE_CACHE_DURATION as u32)];
        response.headers.set(ContentType(self.mime.parse().unwrap()));
        response.headers.set(CacheControl(cache));
        response.headers.set(LastModified(HttpDate(time::at(self.date_updated))));
        response
    }
pub fn serve ( self ) -> Response { use iron :: headers :: { CacheControl , LastModified , CacheDirective , HttpDate , ContentType } ; let mut response = Response :: with ( ( status :: Ok , self . content ) ) ; let cache = vec ! [ CacheDirective Public CacheDirective MaxAge ( super STATIC_FILE_CACHE_DURATION as u32 ) ] ; response . headers . set ( ContentType ( self . mime . parse ( ) . unwrap ( ) ) ) ; response . headers . set ( CacheControl ( cache ) ) ; response . headers . set ( LastModified ( HttpDate ( time :: at ( self . date_updated ) ) ) ) ; response }
Consumes File and creates a iron response
Consumes File and creates a iron response
self