分享一个牛逼的chrome插件--Postman

来源:互联网 发布:淘宝的正品保证有用吗 编辑:程序博客网 时间:2024/06/05 08:51

不管你是做b/s开发,还是c/s开发,网络请求是必不可少的。

尤其对于做client端的童鞋来说,往往用chrome上审查元素来看网络状态,尤其是看服务器的response。

所以,就推荐一款非常牛逼的、简单明了的chrome插件-Postman。

这里写图片描述

https://www.getpostman.com/docs/responses

Understanding and working with responses

Ensuring that the API response is correct is something that you will be doing a lot. The Postman response viewer will make this task much easier for you.

An API response consists of the body, headers and the status code. Postman organizes body and headers in different tabs. The status code with the time taken for the API call is displayed next to the tabs. You can hover over the status code to get more details about the code. Mostly it will be the default description as mandated by the HTTP spec but API authors can also add custom messages.

以GET请求为例:

1 输入url
2 添加Headers
3 点击Send
4 各种姿势看response
这里写图片描述

后话:
这个插件也能操作cookie相关的姿势,但是,如果与cookie打交道更多的话,我还是推荐使用:
EditThisCookie

1 0
原创粉丝点击