【文件属性】:
文件名称:very-tiny-http-client:仅仅是 NodeJS 的“http”和“https”包的便利包装器
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-15 17:34:43
JavaScript
非常小的http客户端
仅仅是 NodeJS 的原生http和https包的包装器。
npm install --save very-tiny-http-client
例子
var httpclient = require ( 'very-tiny-http-client' ) ;
httpclient . post ( {
url : 'http://example.server:3000/resources' ,
data : {
arbirtrary : "JSON Payload"
}
} , function ( err , res ) {
if ( err ) {
throw err ;
}
console . log (
【文件预览】:
very-tiny-http-client-master
----.gitignore(42B)
----README.md(748B)
----package.json(689B)
----index.js(3KB)