This project is a POC for a new HTTP client for Erlang to be proposed for inclusion in OTP. This means, at this time, it is focused on the API and not on being a feature complete client, edge cases and handling all potential errors.
The goal is to use the future gen_http low level client of OTP, at which point
support for features like connection pooling will be added and the POC will move
to a proposal and if there is no interest it will potentially move to continue
{}as a non-POC library that stays third party if there is community interest.
> reqerl:get("https://reqbin.org/json")
#{status => 200, headers => #{...}, body => [#{<<"x">> => 1,<<"y">> => 2},#{<<"x">> => 3,<<"y">> => 4}]}> reqerl:request(#{url => "https://reqbin.org/json", chain => []})
#{status => 200, headers => #{...}, body => <<"[{\"y\":2,\"x\":1},{\"y\":4,\"x\":3}]">>}> reqerl:request(#{url => "https://reqbin.org/json", options => #{decode_body => raw}})
#{status => 200, headers => #{...}, body => <<"[{\"y\":2,\"x\":1},{\"y\":4,\"x\":3}]">>}