lostisland / faraday

Simple, but flexible HTTP client library, with support for multiple backends.
https://lostisland.github.io/faraday
MIT License
5.71k stars 972 forks source link

Raise Error: Add Faraday::RequestTimeoutError #1513

Closed tisba closed 1 year ago

tisba commented 1 year ago

Fixes #1511

This PR adds Faraday::RequestTimeoutError and raises it on HTTP 408 responses when the Raise Error Middleware is used.

I also took the liberty to hint out how to get eventmachine installed with Ruby >= 3.0 to work on docs/.

Let me know if this works for you or if you expect something in addition. I basically just copy-pasted the new error looking at the surrounding code 😀