nestrs_core/platform.rs
1/// Pluggable HTTP engine (NestJS “platform agnostic” idea). Only [`AxumHttpEngine`] is implemented today.
2pub trait HttpServerEngine: Send + Sync + 'static {
3 type Router: Send + 'static;
4}
5
6/// Default engine: Axum [`Router`](axum::Router).
7pub struct AxumHttpEngine;
8
9impl HttpServerEngine for AxumHttpEngine {
10 type Router = axum::Router;
11}