Elton Web框架-其他

时间:2024-07-01 16:24:42
【文件属性】:

文件名称:Elton Web框架-其他

文件大小:240KB

文件格式:ZIP

更新时间:2024-07-01 16:24:42

Elton Web框架 go web框架

Elton的实现参考了koa以及echo,统一中间件的形式,方便定制各类中间件,所有中间件的处理方式都非常简单,如果需要转给下一中间件,则调用Context.Next(),如果当前中间件出错,则返回Error结束调用,如果无需要转至下一中间件,则无需要调用Context.Next()。对于成功返回只需将响应数据赋值Context.Body = 响应数据,由响应中间件将Body转换为相应的响应数据,如JSON等。


【文件预览】:
说明.htm
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()
----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)

网友评论