www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Hunt HttpClient 1.0.0 released, new http client library!



Hunt HttpClient is a tool library for sending HTTP requests to 
Web service communications. provides a very good development 
experience for developers.

The interface design draws on the most popular laravel in the PHP 
:)



```D
string content = 
Http.get("http://api.example.com/user/1").content();

writeln(content);
```




```D
auto response = Http.post("http://api.example.com/auto",
         ["username": "admin", "password": "hunt  2020"]);

string content = response.content();

writeln(content);
```


https://github.com/huntlabs/hunt-httpclient



[1] https://laravel.com/docs/7.x/http-client
May 21 2020