没有合适的资源?快使用搜索试试~ 我知道了~
st:用于提供静态文件的节点模块。 etags,缓存等
共36个文件
js:26个
html:3个
gitignore:1个
需积分: 9 0 下载量 53 浏览量
2021-02-19
20:36:50
上传
评论
收藏 28KB ZIP 举报
温馨提示
英石 用于提供静态文件的模块。 是否进行etag,缓存等。 用法 这是一些非常简单的用法示例。 只需在http服务器url根目录下的cwd中提供文件即可: const st = require ( 'st' ) const http = require ( 'http' ) http . createServer ( st ( process . cwd ( ) ) ) . listen ( 1337 ) 在/ static网址下以静态方式提供文件。 否则,请执行其他操作: const path = require ( 'path' ) const mount = st ( { path : path . join ( __dirname , '/static' ) , url : '/static' } ) http . createServer ( ( req , res
资源推荐
资源详情
资源评论
收起资源包目录
st-master.zip (36个子文件)
st-master
.gitignore 13B
package.json 875B
bin
server.js 4KB
.travis.yml 153B
LICENSE 765B
README.md 9KB
st.js 16KB
favicon.ico 7KB
test
middleware.js 412B
no-fd-cache.js 110B
explicit-cache-control.js 296B
multi-mount.js 6KB
common.js 1KB
cli
common.js 3KB
basic-test.js 847B
host-test.js 2KB
dot-true.js 378B
no-cache.js 552B
basic.js 3KB
preset-cache-control.js 1KB
no-cors.js 284B
passthrough.js 2KB
gzip-after-no-gzip.js 1KB
cors.js 495B
no-gzip-accepted.js 849B
no-gzip-accepted-no-cache.js 906B
dot-false.js 401B
no-content-maxage.js 137B
fd-limit.js 125B
no-gzip.js 462B
dot-common.js 846B
fixtures
.dotted-dir
index.html 299B
.index.html 299B
space in filename.txt 18B
index.html 310B
parent-path.js 152B
共 36 条
- 1
资源评论
观察社
- 粉丝: 21
- 资源: 4689
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240522_084328_com.tencent.mm.jpg
- 附件计算机专业课选课说明-1.xlsx
- 基于TypeScript的ahousepet-admin-web管理系统设计源码
- 《广东开放大学学习指引》期末考核要求0522.zip
- mkl-2021.1.1-py2.py3-none-macosx-10-15-x86-64.whl
- mkl-2018.0.3-py2.py3-none-manylinux1-x86-64.whl
- halcon实现两幅图像相减
- mkl-2021.3.0-py2.py3-none-manylinux1-x86-64.whl
- IAR9.3主题配置,包含字体颜色等
- 才从简来.apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功