1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 19:44:02 +00:00

improve timeout middleware

This commit is contained in:
wernerr 2020-06-21 17:44:12 +02:00
parent cf4e2bbcdd
commit 48c6b8b02a

View File

@ -1,9 +1,7 @@
# Timeout wrapper
Why use this middleware?
...
# Timeout
Wrapper function which provides a handler with a timeout.
If the handler takes longer than the given duration, the timeout error is set and forwarded to the next method.
### Example
```go
package main