Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
框架-codeceptjs。我想向我的应用程序发送 api 请求:I.sendPostRequest I.sendGetRequest 等。
我安装了 unirest 库。接下来我必须做什么?如何为这些函数编写助手?
安装 inirest :npm install unirest -g
npm install unirest -g
删除: await I.sendDeleteRequest(url)
await I.sendDeleteRequest(url)
发布:
await I.sendPostRequest(url, null, { 'Content-Type': 'application/json' })