Task #22207
Add an example of the timeoutMiddleware
Start date:
15/11/2024
Due date:
% Done:
0%
Estimated time:
Description
Add an example of the timeoutMiddleware
in the codebase to show how to use it and how it works.
Updated by Sachin Divekar 5 months ago
- Status changed from In Progress to Closed
Implemented an example to demonstrate Alya's timeout handling capabilities.
- Two endpoints (
/quick
and/slow
) to demonstrate timeout behavior - Use of
timeoutMiddleware
- Detailed request timing logs using LogHarbour
- Custom error codes and message IDs for timeout scenarios
- README with usage instructions