//! Middleware trait: IMiddleware.
use crateResult;
use crateIHttpContext;
/// Middleware component in the HTTP request pipeline.
///
/// Middlewares are called in registration order. Each middleware can:
/// - Inspect/modify the request before passing through
/// - Short-circuit by calling methods on the response without returning
/// - The pipeline continues to the next middleware unless the response
/// status has been set (short-circuit detection).
///
/// Analogous to ASP.NET Core's IMiddleware.