Dotweb Versions Save

Simple and easy go web micro framework

v1.7.21

1 year ago

####Version 1.7.21

  • feature: add SessionManager.RemoveSessionState to delete the session state associated with a specific session ID
  • feature: add HttpContext.DestorySession() to delete all contents of the session and set the sessionId to empty
  • For my birthday!
  • 2023-04-15 16:00 at ShangHai

v1.7.19

2 years ago

####Version 1.7.19

  • feature: add SetReadTimeout\SetReadHeaderTimeout\SetIdleTimeoutSetWriteTimeout func() in HttpServer
  • 2021-04-20 13:00 at ShangHai

v1.7.18

3 years ago

####Version 1.7.18

  • Bug fix: fix deepcopy middleware not success
  • 2021-04-20 13:00 at ShangHai

####Version 1.7.17

  • Bug fix: fix GetRandString return same result
  • 2021-01-29 08:00 at ShangHai

v1.7.16

3 years ago

####Version 1.7.16

  • Bug fix: fix middleware chain misbehaving in netsed groups
  • Tips: for issue #234, thanks for @live's code
  • 2021-01-24 22:00 at ShangHai

####Version 1.7.15

  • Tips: replace *HttpContext to Context interface,used to implementation custom Context in dotweb
  • feature: add ContextCreater func() Context & HttpServer.SetContextCreater
  • refactor: update *HttpContext to Context interface in HttpServer & Middleware & Request
  • refactor: add defaultContextCreater used to create Context with HttpContext when HttpServer.ServeHTTP
  • example code: example/main.go
  • How to use SetContextCreater:
// define
type testContext struct {
	dotweb.HttpContext
	TestInfo string
}

func testContextCreater() dotweb.Context {
	return &testContext{TestInfo:"Test"}
}

// set into dotweb
app.HttpServer.SetContextCreater(testContextCreater)

// use in router
func OutputTestInfo(ctx dotweb.Context) error {
	return ctx.WriteString(ctx.(*testContext).TestInfo)
}
  • 2021-01-24 18:00 at ShangHai

v1.7.14

3 years ago

Version 1.7.14

  • fix: fixed can not set redis maxIdle & maxActive when use redis session, fix for issue #236
  • refactor: add StoreConfig.MaxIdle & StoreConfig.MaxActive set redis maxIdle & maxActive
  • refactor: add redisutil.GetDefaultRedisClient to returns the RedisClient of specified address
  • refactor: update redisutil.GetRedisClient returns the RedisClient of specified address & maxIdle & maxActive
  • opt: set defaultMaxIdle=10, defaultMaxActive=50 when use default redis config
  • How to set redis maxIdle & maxActive when use redis session:
sessionConf := session.NewDefaultRedisConfig("redis://xx.xx.xx.xx:6379/0")
sessionConf.BackupServerUrl = "redis://xx.xx.xx.xx:6379/0"
sessionConf.CookieName = "dotweb-example.SessionID"
sessionConf.MaxIdle = 20
sessionConf.MaxActive = 100
  • 2020-12-19 21:00 at ShangHai

v1.7.13

3 years ago

Version 1.7.13

  • fix: fixed can not get correct Path which in Post requests
  • 2020-08-11 18:00 at ShangHai

v1.7.12

3 years ago

####Version 1.7.12

  • fix: fix error when set HttpServer.SetEnabledGzip(true)
  • add Happy 6.1 print
  • 2020-06-01 23:00 at ShangHai

v1.7.11

3 years ago

Version 1.7.11

  • Feature: add Tools include some useful functions
  • Feature: add Tools.PrettyJson used to pretty json format view in text
  • Detail: use ctx.Tools() to use Tools
  • 2020-05-10 15:00 at ShangHai

v1.7.10

4 years ago

Version 1.7.10

  • Feature: add Request.ExistsQueryKey used to check is exists from query params with the given key.
  • Opt: optimize file layout, remove module.go
  • Opt: optimize core/htmx implementation
  • Opt: /dotweb/state/interval support pretty mode, you can visit like this: /dotweb/state/interval?pretty
  • 2019-12-01 15:00 at ShangHai

v1.7.9

4 years ago

Version 1.7.9

  • Opt: optimize html create code
  • Opt: optimize core.CreateTablePart\core.CreateTableHtml\core.CreateHtml
  • 2019-11-20 07:00 at ShangHai