Expand description
§ullun-api
Express.js-inspired web framework for Rust.
§Quick Start
use ullun::prelude::*;
#[tokio::main]
async fn main() {
App::new()
.get_with_params("/hello/{name}", |params: Params| async move {
Ok(Response::json(serde_json::json!({
"message": format!("Hello, {}!", params.get("name").unwrap())
})))
})
.run("127.0.0.1:3000")
.await
.unwrap();
}Modules§
- app
- Main application orchestrator
- cookies
- Cookie parsing and management
- error
- Error types and Result alias
- handler
- Handler traits and types
- middleware
- Middleware types and traits
- prelude
- request
- Request types and extractors
- response
- Response types and builders
- router
- Router implementation using matchit
- static_
files - Static file serving