Hunt HttpClient 1.0.0 released, new http client library!
zoujiaqing
zoujiaqing at gmail.com
Fri May 22 04:56:37 UTC 2020
# Hunt HttpClient
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
:)
## Simple code for get:
```D
string content =
Http.get("http://api.example.com/user/1").content();
writeln(content);
```
## Simple code for post:
```D
auto response = Http.post("http://api.example.com/auto",
["username": "admin", "password": "hunt@@2020"]);
string content = response.content();
writeln(content);
```
## Repository
https://github.com/huntlabs/hunt-httpclient
## See also
[1] https://laravel.com/docs/7.x/http-client
More information about the Digitalmars-d-announce
mailing list