Proposal to Add Timeout Option to HttpClient Interface for Simplified Request Error Handling
We're looking at the best way to handle
HttpClient timeouts. While composing the client like Struggling to Implement Request Timeout in Discord Client works, it would be useful to add a timeout option to the send methods on the HttpClient interface (similar to how fetch has a signal option) to simplify creating the RequestError. It could also be an option on HttpClientRequest itself. I'm happy to open a PR to add this, but has it been discussed/thought about before?