You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration-reference.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -486,16 +486,16 @@ Server.serve({
486
486
});
487
487
```
488
488
489
-
### Middleware
489
+
### `middleware`
490
+
-**Type:**`Function | Function[]`
491
+
-**Description:** One or more Express-style middleware functions `(req, res, next)` to run before every request reaches the router. Middleware is executed in array order.
> **Note:**`compression` and `middleware` can be used together. The `middleware` array runs first (in order), then the compression middleware is appended.
526
+
527
+
See [Middleware Guide](middleware-guide.md) for the full API, response-wrapping patterns, and custom middleware examples.
0 commit comments