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:
parent
cf4e2bbcdd
commit
48c6b8b02a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user