TLS support for the afire webserver framework.
The current implementation only supports rustls, but native-tls support is planned. Also currently afire websockets don't work with the TLS event loop.
let mut server = Server::<()>::new("localhost", 8080)
.event_loop(AfireTls::new(
include_bytes!("localhost.crt"),
include_bytes!("localhost.key"),
));
server.route(Method::GET, "/", |ctx| {
ctx.text("Hello, world!").send()?;
Ok(())
});
server.run().unwrap();