Expand description
§ignitia Web Framework
A blazing fast, lightweight web framework for Rust that ignitias your development. Built by Aarambh Dev Hub.
§Quick Start
use ignitia::{Router, Server, Request, Response, Result, handler_fn};
#[tokio::main]
async fn main() -> Result<()> {
let router = Router::new()
.get("/", handler_fn(|_req| async {
Ok(Response::text("Hello from ignitia! 🔥"))
}));
let server = Server::new(router, "127.0.0.1:3000".parse().unwrap());
server.ignitia().await.unwrap();
Ok(())
}Re-exports§
pub use cookie::Cookie;pub use cookie::CookieJar;pub use cookie::SameSite;pub use error::Error;pub use error::Result;pub use extension::Extension;pub use extension::Extensions;pub use handler::extractor::Body;pub use handler::extractor::Cookies;pub use handler::extractor::Headers;pub use handler::extractor::Json;pub use handler::extractor::Method as IgnitiaMethod;pub use handler::extractor::Path;pub use handler::extractor::Query;pub use handler::extractor::Uri;pub use handler::handler_fn;pub use handler::into_handler;pub use handler::raw_handler;pub use handler::Handler;pub use handler::HandlerFn;pub use handler::IntoHandler;pub use handler::RawRequest;pub use middleware::Middleware;pub use request::Request;pub use response::Response;pub use response::ResponseBuilder;pub use router::Route;pub use router::Router;pub use server::Server;
Modules§
Structs§
- Header
Map - A set of HTTP headers
- Header
Value - Represents an HTTP header field value.
- Method
- The Request Method (VERB)
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).