没有合适的资源?快使用搜索试试~ 我知道了~
服务处理程序:“服务”的基础
共26个文件
html:4个
js:3个
json:3个
需积分: 5 0 下载量 53 浏览量
2021-02-05
23:31:25
上传
评论
收藏 96KB ZIP 举报
温馨提示
服务经理 这个包装代表了的核心。 它可以插入任何HTTP服务器,并负责路由请求和处理响应。 为了自定义默认行为,您还可以传递自定义的路由规则,提供自己的与文件系统进行交互的方法等。 用法 通过使用安装软件包开始: yarn add serve-handler 如果您愿意,也可以改用 : npm install serve-handler 接下来,将其添加到您的HTTP服务器。 这是使用的示例: const handler = require ( 'serve-handler' ) ; module . exports = async ( request , response )
资源推荐
资源详情
资源评论
收起资源包目录
serve-handler-master.zip (26个子文件)
serve-handler-master
package.json 2KB
.yarnrc 15B
test
integration.js 30KB
fixtures
docs.md 27B
public-folder.test
index.html 64B
single-directory
content.txt 19B
object.json 96B
404.html 23B
clean-file.html 36B
directory
index.html 14B
docs.txt 27B
special-directory
not-an-index.md 33B
symlinks
package.json 21B
.dotfile 15B
secret 7B
another-directory
index.htm 14B
LICENSE 1KB
src
index.js 19KB
glob-slash.js 385B
error.jst 2KB
directory.jst 5KB
.gitignore 97B
.circleci
config.yml 982B
README.md 11KB
yarn.lock 176KB
.editorconfig 704B
共 26 条
- 1
资源评论
你就应该
- 粉丝: 43
- 资源: 4600
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功