Axeon
A modern, flexible, and feature-rich web framework for Rust.
Features
- Express-style routing with support for path parameters and query parameters
- Modular router system with mounting capabilities
- Powerful middleware system for request/response processing
- Built-in security features and authentication support
- JSON request/response handling with type safety
- Async/await support throughout the framework
- Built-in logging and error handling
Quick Start
Add Axeon to your Cargo.toml:
[]
= "0.2.0"
Create a simple server:
use ;
Examples
Basic Routing
use ;
let mut app = new;
// Basic GET route
app.get;
// Route with path parameter
app.get;
JSON Handling
use ;
use ;
// POST endpoint with JSON handling
app.post;
Middleware
use ;
;
let mut app = new;
app.middleware;
Router Groups
use ;
let mut app = new;
let mut api = new;
// Define routes for the API group
api.get;
// Mount the API router with a prefix
app.mount;
Documentation
For detailed documentation and more examples, check out:
License
This project is licensed under the MIT License.