axios-template-literal:乌夫,糖太多

时间:2021-04-11 23:11:47
【文件属性】:
文件名称:axios-template-literal:乌夫,糖太多
文件大小:72KB
文件格式:ZIP
更新时间:2021-04-11 23:11:47
TypeScript http-template-literal 使HTTP请求符合TBL的要求。 const http = require ( 'http-template-literal' ) var res = await http ` GET https://httpbin.org/get HTTP/1.1 Accept: application/json ` console . log ( 'Request one:' , res . body ) var res = await http ` POST https://httpbin.org/post HTTP/1.1 Content-Type: application/json ${ JSON . stringify ( { hello : 'world' , awesome : true } ) } `
【文件预览】:
axios-template-literal-dev
----rollup.config.js(2KB)
----yarn.lock(178KB)
----.eslintrc.js(233B)
----example.js(494B)
----src()
--------types.ts(986B)
--------index.ts(1KB)
--------request-literal.ts(2KB)
----.babelrc(271B)
----.vscode()
--------settings.json(87B)
----tsconfig.json(167B)
----README.md(463B)
----.editorconfig(121B)
----.gitignore(57B)
----.eslintignore(4B)
----package.json(2KB)

网友评论