TBaseHttpServerModule.AddMiddleware Method
Adds a middleware to the module. Middlewares run in the order they were added, before the module request processing.
Syntax
Unit: Sparkle.HttpServer.Module
procedure TBaseHttpServerModule.AddMiddleware(const AMiddleware: IHttpServerMiddleware);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AMiddleware | IHttpServerMiddleware | The middleware to add. |