HTTPI: a common interface for Ruby HTTP libraries
07-Oct-2021 2334
HTTPI provides a common interface for Ruby’s most popular HTTP clients:HTTPClientCurbEM-HTTP-Request (also requires EM-Synchrony)Net::HTTPNet::HTTP::PersistentexconRackDue to the fact that Rubygems does not allow optional dependencies, HTTPI does not specify any of these libraries as direct dependencies. Therefore if you want to use anything other than Net::HTTP, you need to make sure it’s available in your load path.When you’re executing any HTTP request for the first time without having specified an adapter to use, HTTPI tries to load and use the "best" library for you. It follows a specific load order with Net::HTTP at the end of the chain:.
HTTPI: a common interface for Ruby HTTP libraries #ruby #rubydeveloper #rubyonrails #HTTPI: #common #interface #libraries https://rubyonrails.ba/link/httpi-a-common-interface-for-ruby-http-libraries