链接
https://httpie.org/
安装
pip install httpie
简单实用
get
$ http GET http://localhost:5000/api/users/1
HTTP/1.0 200 OK
Content-Length: 474
Content-Type: application/json
Date: Tue, 06 Aug 2019 06:30:58 GMT
Server: Werkzeug/0.15.5 Python/3.7.3
{
"_links": {
"avatar": "https://www.gravatar.com/avatar/91844a938050e85de14f6bcc8f157bd3?d=identicon&s=128",
"followed": "/api/users/1/followed",
"followers": "/api/users/1/followers",
"self": "/api/users/1"
},
"about_me": "远不如缺陷 给与我们益处。",
"followed_count": 0,
"follower_count": 1,
"id": 1,
"last_seen": "2019-08-06T03:19:12Z",
"post_count": 5,
"username": "ruiyang"
}