没有合适的资源?快使用搜索试试~ 我知道了~
deliver:传送本地和远程静态文件
共8个文件
js:2个
txt:1个
html:1个
需积分: 9 0 下载量 55 浏览量
2021-06-18
04:57:48
上传
评论
收藏 5KB ZIP 举报
温馨提示
递送 提供本地和远程静态文件。 安装 npm install deliver --save 用法 本地文件 var deliver = require ( 'deliver' ) ; var http = require ( 'http' ) ; http . createServer ( function ( req , res ) { // Conditionally set the request url req . url = '/some' ; deliver ( req , res , { root : process . cwd ( ) // OPTIONAL } ) . pipe ( res ) ; } ) . listen ( 3000 ) ; 远程文件(代理) var deliver = require ( 'deliver' ) ; v
资源推荐
资源详情
资源评论
收起资源包目录
deliver-master.zip (8个子文件)
deliver-master
.gitignore 97B
package.json 933B
index.js 3KB
README.md 1KB
test
index.js 9KB
fixtures
testfile1.txt 9B
testing.jpg 0B
index.html 5B
共 8 条
- 1
资源评论
hsjdbdb
- 粉丝: 21
- 资源: 4586
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功