没有合适的资源?快使用搜索试试~ 我知道了~
http-responders:零依赖的HTTP响应者
共9个文件
json:2个
js:2个
prettierignore:1个
需积分: 5 0 下载量 144 浏览量
2021-05-02
09:30:39
上传
评论
收藏 80KB ZIP 举报
温馨提示
http-响应者 零依赖性HTTP响应功能。 支持: json redirect stream file download 例子 const { json , redirect , stream , file , download } = require ( 'http-responders' ) http . createServer ( ( req , res ) => { // Respond with JSON json ( res , { beep : 'boop' } ) // Redirect redirect ( req , res , 'https://example.com/' ) // Respond with a generic stream stream ( res , fs . createReadStream ( 'file
资源推荐
资源详情
资源评论
收起资源包目录
http-responders-master.zip (9个子文件)
http-responders-master
.prettierignore 11B
.gitignore 25B
README.md 997B
.github
workflows
ci.yml 211B
LICENSE 1KB
package.json 461B
index.js 1KB
test.js 4KB
package-lock.json 305KB
共 9 条
- 1
资源评论
彷徨的牛
- 粉丝: 55
- 资源: 4720
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功