basi_css/
lib.rs

1use tiny_http::{Header, Response};
2
3pub fn serve_css() -> Response<std::io::Cursor<Vec<u8>>> {
4    // Check if the request path matches "/style.css"
5    let css = include_str!("../assets/basicss.css");
6
7    // Create a response with a content-type of text/css
8    let response = Response::from_string(css)
9        .with_header(Header::from_bytes("Content-Type", "text/css").unwrap());
10
11        response
12}