Wrapping Up
HTTP clients are relatively easy libraries to use, but a lot of complexity hides beneath the surface. The varying levels of abstraction can create a bit of confusion regarding which library you should use for your app. Libraries at the lower levels of abstraction (such as socket protocols or pooled connections) are usable but will usually leave you wishing that they had more features. Full-featured libraries such as Req and Tesla will provide a solid foundation for any app out there. It’s largely a matter of preference, but we picked Req for our app.
It’s easy to use Req to make HTTP requests, but you’ll likely need a configuration that tells the system which URL domain to send requests to, which authentication to use, and so on. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access