use trillium_html_rewriter::{ html::{element, html_content::ContentType, Settings}, HtmlRewriter, }; use trillium_proxy::Proxy; use trillium_rustls::RustlsConfig; use trillium_smol::ClientConfig; pub fn main() { env_logger::init(); trillium_smol::run(( Proxy::new( RustlsConfig::::default(), "http://neverssl.com", ), HtmlRewriter::new(|| Settings { element_content_handlers: vec![element!("body", |el| { el.prepend("

rewritten

", ContentType::Html); Ok(()) })], ..Settings::default() }), )); }