use axum::{ http::{HeaderValue, header}, response::{IntoResponse, Response}, }; #[derive(Clone, Copy, Debug)] #[must_use] pub struct Css(pub T); impl IntoResponse for Css where T: IntoResponse, { fn into_response(self) -> Response { ( [(header::CONTENT_TYPE, HeaderValue::from_static("text/css"))], self.0, ) .into_response() } }