Besides CRuby, httpx
also supports the most popular alternative implementations of Ruby, jruby
and truffleruby
. There are a few things to consider when using httpx
under these implementations, so this page aims at documenting useful guidelines and tips.
As JRuby
doesn’t run C-extensions, some of the plugins are unusable, as they don’t provide alternative Java extensions:
:brotli
(uses the brotli gem, C-extensions based):proxy/ssh
(uses net-ssh-gateway, which hangs under JRuby)jruby-openssl introduced ALPN negotiation starting with 0.12.2
, which enables HTTP/2 in the sames conditions as when using CRuby (In lower versions, HTTP/1.1 will be used).
Next: FAQ