美文网首页
Android Studio网络请求插件Http Editor

Android Studio网络请求插件Http Editor

作者: EmpathyBasic | 来源:发表于2019-10-19 15:59 被阅读0次

编写Android程序的时候,经常会先测试一下后端给的接口。如果是GET请求还好,我们直接把url复制到浏览器,但是POST请求,浏览器就不好模拟,此时相信很多人都会使用Postman。但是为了测试一个POST请求的接口,我还要打开Postman应用,个人认为太麻烦!此时我用的Http Editor Client插件来模拟POST请求,此插件再Idea中是自带的,在Android Studio 中要自行安装。

image.png
使用也很简单,具体可以参考官网
https://plugins.jetbrains.com/plugin/9232-http-editor-client/
https://github.com/danblack/idea-rest-client

新建一个后缀为.rest文件


image.png

相关文章

网友评论

      本文标题:Android Studio网络请求插件Http Editor

      本文链接:https://www.haomeiwen.com/subject/wmqnmctx.html