Shot should provide a timeout option
Open
feature
- Dominant language
- JavaScript
- Stars
- 196
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
### Runtime
any
### Runtime version
any
### Module version
any
### Used with
Hapi
### Any other relevant information
_No response_
### What problem are you trying to solve?
When testing an endpoint that returns `h.abandon`, or whenever benchmarking an endpoint, I currently have to write some code to detect if an endpoint takes longer than `x` amount of time.
It would be very useful to include a `timeout` option that, when included, times the request out if it takes longer than `x` amount of time.
### Do you have a new or modified API suggestion to solve the problem?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.