labstack / echox

Echo cookbook and website
https://echo.labstack.com
MIT License
407 stars 285 forks source link

update timeout middleware with warnings #218

Open aldas opened 3 years ago

aldas commented 3 years ago

update timeout middleware with warnings and add example how to implement similar functionality in handler function

aldas commented 3 years ago

todo: probably should mention Nginx/Apache etc similar behavior and configuration settings

aldas commented 3 years ago

note to self: probably should add a note that order of middlewares is important. ala if timeout was added before logger. then logger middlewares logs response info for already served requests. Or what will happen if handler is websocket?