httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Maintain backwards compatibilty with HTTP::Response :uri #677

Closed schwern closed 3 years ago

schwern commented 3 years ago

5.0.0 now requires HTTP::Response takes a :request. That's fine. https://github.com/httprb/http/commit/2fb5e6f26a324864f990fef6ab4d7a4987f36dce

However, it removed accepting :uri and that broke my test factories. It's not a hard fix, but it seems unnecessary.

How about instead to maintain backwards compatibility...

Make it clear in the docs that :uri and :verb are deprecated and will be removed in version 6. That will give people a bit of a buffer.

ixti commented 3 years ago

Agree. Resolved in #678