hunt-httpclient 1.2.0
A simple HttpClient wrapper.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
Hunt HttpClient
Hunt HttpClient is a tool library for sending HTTP requests to Web service communications. provides a very good development experience for developers.
Simple code for get
string content = Http.get("http://api.example.com/user/1").content();
writeln(content);
Simple code for post
auto response = Http.post("http://api.example.com/auto",
["username": "admin", "password": "hunt@@2020"]);
string content = response.content();
writeln(content);
See also
[1] https://laravel.com/docs/7.x/http-client
- Registered by zoujiaqing
- 1.2.0 released 3 years ago
- huntlabs/hunt-httpclient
- www.huntlabs.net
- Apache-2.0
- Copyright (C) 2015-2021, HuntLabs
- Dependencies:
- hunt-http
- Versions:
-
1.2.0 2021-Nov-19 1.1.0 2021-Jan-29 1.0.2 2020-Dec-25 1.0.1 2020-Aug-11 1.0.0 2020-May-22 - Download Stats:
-
-
0 downloads today
-
1 downloads this week
-
2 downloads this month
-
603 downloads total
-
- Score:
- 1.0
- Short URL:
- hunt-httpclient.dub.pm