HTTPI: a common interface for Ruby HTTP libraries

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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper

Nezir Zahirovic

Freelance software developer Ruby On Rails (6 years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles