savonrb / httpi

Common interface for Ruby's HTTP clients
http://httpirb.com
MIT License
301 stars 151 forks source link

Don't depend on rack version for public api #245

Closed pcai closed 7 months ago

pcai commented 7 months ago

resolves #244

A rewrite of https://github.com/savonrb/httpi/commit/56cd67bf0da61c39552be1d9fc9bff6f33315284 which vendors Rack::Headers (MIT license) as HTTPI::Utils::Headers so that the public api for HTTPI won't have to branch on the version of rack that is loaded.

Rack will still be a dependency, both for its querystring generation at runtime and for testing. But these are implementation details and the runtime dep can be completely removed in the future if desired.

Proposed release strategy: yank 4.0.0 and release this as 4.0.1, making it the first release in the 4.x line with the new API, which will be stable going forward