Skip to content

Support http.rb 6.0#103

Merged
janko merged 1 commit intojanko:masterfrom
sferik:support-http_rb-6
Mar 18, 2026
Merged

Support http.rb 6.0#103
janko merged 1 commit intojanko:masterfrom
sferik:support-http_rb-6

Conversation

@sferik
Copy link
Contributor

@sferik sferik commented Mar 18, 2026

This patch adds support for v6 of the http gem, while maintaining support for earlier versions going back to 2.1.0.

There were various changes to the public API in v6, including:

  • Chainable methods now return an HTTP::Session instead of an HTTP::Client
  • Options are now passed as keyword arguments instead of a Hash
  • Malformed URIs now raise an HTTP::URI::InvalidError
  • Addressable is now an optional dependency, so it needs to be explicitly required
  • 1xx responses are now transparently skiped

@janko
Copy link
Owner

janko commented Mar 18, 2026

Thanks! I'll merge it and fix CI failures.

@janko janko merged commit 6c5c7a8 into janko:master Mar 18, 2026
4 of 8 checks passed
@sferik sferik mentioned this pull request Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants