Skip to main content

nestforge_http/
lib.rs

1/**
2 * NestForge HTTP Server Wrapper
3 *
4 * This crate provides the HTTP server infrastructure for NestForge applications.
5 * It wraps axum and tokio to handle the complexity of web server setup,
6 * allowing developers to focus on application logic.
7 *
8 * # Key Components
9 * - `NestForgeFactory`: Main entry point for creating and configuring HTTP applications
10 * - Middleware consumer and route configuration
11 * - Request/response pipeline integration
12 *
13 * # Usage
14 * Most users will interact with this crate through the main `nestforge` crate,
15 * which re-exports the key types needed for application bootstrapping.
16 */
17pub mod factory;
18pub mod middleware;
19
20/**
21 * Re-exports the application factory for creating NestForge HTTP servers.
22 *
23 * This is the primary way to create and configure a NestForge application
24 * that serves HTTP endpoints.
25 */
26pub use factory::NestForgeFactory;
27
28/**
29 * Re-exports middleware types for request/response processing.
30 *
31 * Middleware in NestForge provides a way to execute logic before and after
32 * request handling, similar to axum middleware but with NestForge-specific
33 * integration.
34 */
35pub use middleware::{MiddlewareConsumer, MiddlewareRoute, NestMiddleware};