/// Wrapper around Response.set_body for the CSS context type.
Wrapper around Response.set_body for the CSS context type.
Wrapper around Response . set_body for the CSS context type .
pub fn css(&mut self, css: impl Fn(&mut CssBuilder)) {
        let _ = self
            .headers_mut()
            .insert(header::CONTENT_TYPE, HeaderValue::from_static("text/css"));
        let mut builder = CssBuilder::new();
        css(&mut builder);
        self.set_body(builder.get_body());
    }
pub fn css ( & mut self , css : impl Fn ( & mut CssBuilder ) ) { let _ = self . headers_mut ( ) . insert ( header :: CONTENT_TYPE , HeaderValue :: from_static ( " " ) ) ; let mut builder = CssBuilder :: new ( ) ; css ( & mut builder ) ; self . set_body ( builder . get_body ( ) ) ; }
Wrapper around Response.set_body for the CSS context type.
Wrapper around Response . set_body for the CSS context type .
&mut self
css
impl Fn(&mut CssBuilder)