Dotweb Versions Save

Simple and easy go web micro framework

v1.7.8

4 years ago

Version 1.7.8

  • Opt: optimize tree.go
  • Opt: Fix some panic information when a 'catch-all' wildcard conflict occurs.
  • Opt: use maxParamCount const instead of magic number.
  • Opt: optimize countParams.
  • Opt: optimize incrementChildPrio.
  • Opt: comment style fixes.
  • Opt: improve param name check.
  • Opt: fix maxParams bug.
  • 2019-11-19 12:00 at ShangHai

v1.7.7

4 years ago

Version 1.7.7

  • Opt: 优化系统路由dotweb/state、dotweb/routers展现方式,以方便阅读的表格形式输出
  • Feature: 新增core.TableHtml\core.CreateTableHtml()用于生成相关Html代码
  • About:
    • 可访问dotweb/state查看当前实例运行时信息
    • 可访问dotweb/routers查看当前实例注册的所有路由信息
  • 2019-11-12 18:00 at ShangHai

v1.7.6

4 years ago

Version 1.7.6

  • Fix: 修复在调用SetMethodNotAllowedHandle时修改StatusCode无效问题
  • Opt: 将路由阶段设置405代码逻辑移除,相关逻辑在DefaultMethodNotAllowedHandler实现
  • About MethodNotAllowedHandle:
    • 默认使用DefaultMethodNotAllowedHandler
    • 如调用SetMethodNotAllowedHandle,则使用用户代码覆盖DefaultMethodNotAllowedHandler
  • How to use SetMethodNotAllowedHandle:
app.SetMethodNotAllowedHandle(func(ctx dotweb.Context){
    ctx.Redirect(301, "/")
})
  • 2019-11-10 00:00 at ShangHai

v1.7.5

4 years ago

Version 1.7.5

  • Feature: Router增加RegisterHandlerFunc,用于支持注册go原生http.HandlerFunc形式的函数
  • Feature: HttpServer增加RegisterHandlerFunc与RegisterRoute
  • Opt: Router增加transferHandlerFunc、transferStaticFileHandler辅助函数
  • Example: 修改example/router增加RegisterHandlerFunc示例
  • About RegisterHandlerFunc
    • Func: RegisterHandlerFunc(routeMethod string, path string, handler http.HandlerFunc) RouterNode
  • How to use RegisterHandlerFunc:
func HandlerFunc(w http.ResponseWriter, r *http.Request){
	w.Write([]byte("go raw http func"))
}

server.RegisterHandlerFunc("GET", "/h/func", HandlerFunc)
  • 2019-11-07 01:00 at ShangHai

v1.7.4

4 years ago

Version 1.7.4

  • New Feature: HttpServer.RegisterServerFile增加excludeExtension参数,用于设置不希望被访问的文件后缀名
  • Update: 增加ErrNotFound
  • About HttpServer.RegisterServerFile:
    • Demo: server.RegisterServerFile(RouteMethod_GET, "/src/*", "/var/www", nil)
    • Demo: server.RegisterServerFile(RouteMethod_GET, "/src/*filepath", "/var/www", []string{".zip", ".rar"})
    • 当设置excludeExtension为nil时,可访问所有文件
    • 本次更新涉及API变更
  • Fixed for issue #125 & #212
  • 2019-11-04 01:00 at ShangHai

v1.7.3

4 years ago

Version 1.7.3

  • New Feature: Request.PostBody增加Post内容大小限制,默认为32mb
  • About MaxBodySize:
    • 通过app.HttpServer.SetMaxBodySize设置
    • 默认为 32 << 20 (32 mb)
    • -1 : unlimted
    • 0 : use default value
    • other: use other value
  • 感谢 @wziww 提供 PR
  • 2019-10-29 12:00 at ShangHai

v1.7.2

4 years ago

Version 1.7.2

  • Bug Fixed: Request.Release()增加对realUrl的处理
  • 2019-10-23 12:00 at ShangHai

Version 1.7.1

  • New Feature: 新增stringx.CompletionRight\CompletionLeft,用于指定长度两侧补齐字符串
  • Update: 完善dotweb/routers系统页,输出method+router格式,类似:"GET /dotweb/routers"
  • 2019-07-27 08:00 at ShangHai

1.7.0

4 years ago

Version 1.7.0

  • New Feature: 新增NotifyPlugin插件,默认集成监控配置文件变化热重启
  • New Feature: 新增DotWeb.ReSetConfig用于运行时重载配置
  • About NotifyPlugin:
    • 通过NewDefaultNotifyPlugin创建默认集成的NotifyPlugin
    • 仅当Dotweb通过配置文件启动方式下有效,监测默认的配置文件
    • 当热重启配置文件时,Dotweb本身监听端口以及pprod设置不会重载
    • 感谢@地蛋对该插件的支持
  • 2019-07-22 14:00 at ShangHai

1.6.9

4 years ago

Version 1.6.9

  • New Feature: 增加插件机制-Plugin,随App启动一起执行,不会阻塞App启动过程,如需持续运行,在Plugin的Run中自行处理即可。
  • Architecture: 修正BaseMiddlware命名错误,增加BaseMiddleware,保留BaseMiddlware至2.0版本前
  • About Plugin:
    • 通过dotweb.UsePlugin注册插件
    • 自定义插件需事先Plugin接口
    • 即将发布集成插件 - 监控配置文件变化热重启插件
  • 2019-07-12 12:00 at ShangHai

v1.6.8

4 years ago

Version 1.6.8

  • Architecture: Remove OfflineServer
  • Example: Remove render\developmode\start examples
  • Bug fix: update latest tag to v1.6.8 for go modules
  • About examples:
  • 2019-06-29 21:00 at ShangHai.Home