没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Elton的实现参考了koa以及echo,统一中间件的形式,方便定制各类中间件,所有中间件的处理方式都非常简单,如果需要转给下一中间件,则调用Context.Next(),如果当前中间件出错,则返回Error结束调用,如果无需要转至下一中间件,则无需要调用Context.Next()。对于成功返回只需将响应数据赋值Context.Body = 响应数据,由响应中间件将Body转换为相应的响应数据,如JSON等。
资源推荐
资源详情
资源评论
收起资源包目录
Elton-v1.4.0.zip (76个子文件)
说明.htm 4KB
elton-1.4.0
.gitignore 40B
go.mod 261B
elton_test.go 15KB
middleware
response_size_limiter_test.go 2KB
concurrent_limiter_test.go 4KB
etag_test.go 4KB
gzip_test.go 2KB
static_serve.go 8KB
compress.go 6KB
responder.go 4KB
etag.go 3KB
tracker_test.go 3KB
static_embed.go 2KB
logger_test.go 5KB
basic_auth_test.go 4KB
body_parser.go 9KB
stats.go 3KB
concurrent_limiter.go 5KB
recover_test.go 3KB
body_parser_test.go 10KB
gzip.go 3KB
error.go 3KB
fresh_test.go 4KB
stats_test.go 3KB
proxy.go 5KB
error_test.go 4KB
tracker.go 3KB
README.md 140B
basic_auth.go 4KB
static_serve_test.go 6KB
static_embed_test.go 2KB
fresh.go 2KB
compress_test.go 8KB
router_concurrent_limiter.go 4KB
logger.go 8KB
proxy_test.go 8KB
responder_test.go 5KB
recover.go 3KB
response_size_limiter.go 2KB
router_concurrent_limiter_test.go 4KB
Makefile 304B
tree_test.go 14KB
route_params.go 2KB
LICENSE 1KB
route_params_test.go 2KB
context_test.go 18KB
go.sum 3KB
.github
workflows
test.yml 960B
tree.go 14KB
README.md 7KB
elton.go 19KB
context.go 17KB
signed_keys_test.go 3KB
router_test.go 20KB
bench_test.go 2KB
.vscode
settings.json 34B
signed_keys.go 3KB
SUMMARY.md 537B
hooks
pre-commit 34B
docs
introduction.md 11KB
http2_http3.md 7KB
context.md 18KB
custom_compress.md 4KB
application.md 12KB
middlewares.md 19KB
server_timing.md 2KB
performances.md 5KB
book.json 22B
custom_body_parser.md 5KB
group.md 1KB
router_params.md 761B
body_parse_validate.md 5KB
.data
koa.png 85KB
server-timing.png 5KB
df.go 4KB
共 76 条
- 1
资源评论
weixin_38669091
- 粉丝: 4
- 资源: 871
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功