HTTPill v0.1.0 HTTPill View Source
HTTP requests for sick people!
The cure for some poison or potion you might be drinking in the web.
Puns aside, HTTPoison and HTTPotion are both great tools, but we wanted more!
Here’s what we wanted:
- Debug logging
- Return a
Stream
for async chunked responses handling - Auto discovering
Content-Type
based on the given request body - Auto JSON encoding/decoding for the request/response body according to
Content-Type
andAccepts
- Some slightly different response handling options, like returning
{:status_error, response}
for successful requests with status code >= 400, or not returning a tuple at all - Support for both
hackney
andibrowse
, or any other lib that comes to your mind in the future (and yes, you can switch between them anytime) Replaceable default configurations, like
base_url
andrequest_headers
for rawHTTPill
calls. No overrides needed!- BONUS: also a standard way to set config options to your
HTTPill.Base
extensions
- BONUS: also a standard way to set config options to your