Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tsloughter/reqerl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reqerl

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.

Features

Usage

> 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}]">>}

About

Wrapper for Erlang's httpc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages