A no-nonsense, high-powered web server aimed at minimizing dependencies while maintaining speed. Modeled after Express, a popular Javascript web framework, Octane combines the speed of Rust with the ease-of-use and flexibility of Express to create the optimal user experience.
Create an octane instance, and then you can register your methods on it using app.METHOD()
rust
let mut app = Octane::new();
app.get("/", |_req, res| {
Box::pin(async move {
if let Ok(result) = res.send_file("templates/test.html").await {
// yay!
}
})
});
OctaneWeb/Octane is licensed under the MIT License.