All Versions
11
Latest Version
Avg Release Cycle
5 days
Latest Release
1676 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.12.2 Changes
May 13, 2020Context.Error
,Context.NotFound
,Context.Redirect
,Context.ServeFile
,Context.ServeContent
return a nil error.Context.Error(msg string, code int)
was changed asContext.Error(code int, msg string)
.Context.Redirect(url string, code int)
was changed asContext.Redirect(code int, url string)
.
-
v1.12.1 Changes
May 05, 2020- ✂ Remove
Router.paramsPool
.
- ✂ Remove
-
v1.12.0 Changes
May 03, 2020- ➕ Add
Skipper
. - ➕ Add
PathSkipper
. - ➕ Add
IRouter.Any
: registers a new request handler function that matches any HTTP methods. - ➕ Add
Context.SetHeader
: a shortcut ofhttp.ResponseWriter.Header().Set
.
- ➕ Add
-
v1.11.0 Changes
April 15, 2020- ➕ Add
Map
: an alias of map[string]interface{}. - ➕ Add
Decoder
,Router.Decoder
andContext.Decode
for decoding request's input. - ➕ Add
Context.Stringf
.
- ➕ Add
-
v1.10.0 Changes
April 11, 2020- 🚚 Move contextPool out from router.
- ➕ Add middlewareStatePool.
- ➕ Add Context.DefaultQuery.
- Router.ServeFiles accepts route options.
- ➕ Add Context.ServeFile: a shortcut of http.ServeFile.
- ➕ Add Context.ServeContent: a shortcut of http.ServeContent.
- ➕ Add Context.BasicAuth: a shortcut of http.Request.BasicAuth.
- ➕ Add Context.SendFile: sends a file to browser.
-
v1.9.0 Changes
April 04, 2020- ➕ Add
Context.JSON
to send JSON response. - ➕ Add
Context.String
to send string response. - ➕ Add
Context.XML
to send XML response. Content.SetContentTypeJSON
andContent.SetContentTypeXML
appendcharset=utf-8
to content type header.- ➕ Add
Context.HTML
to send HTML response. - ➕ Add
Context.Cookie
andContext.Cookies
. - ➕ Add
Context.FormValue
. - ➕ Add
Context.PostFormValue
. - ➕ Add
Context.QueryString
. - ➕ Add
Context.QueryParams
andContext.QueryParam
. - ➕ Add
Context.JSONP
andContext.JSONPCallback
. - ➕ Add
Context.Render
to render a template. - ➕ Add
Context.RouteURL
to generate URL of the naming route. - ➕ Add
Context.Emit
andContext.Blob
. - ➕ Add
Context.HtmlBlob
. - ➕ Add
Context.XMLBlob
. - ➕ Add
Context.JSONBlob
. - ➕ Add
Context.JSONPBlob
andContext.JSONPCallbackBlob
. - ➕ Add
RecoveryLogger
.
- ➕ Add
-
v1.8.1 Changes
April 01, 2020- 🛠 Fix
WrapHH
doesn't returns the error of final handle.
- 🛠 Fix
-
v1.8.0 Changes
April 01, 2020- ➕ Add
Context.GetHeader
, a shortcut of http.Request.Header.Get. - ➕ Add
WrapH
to wrap a HTTP handler as a middleware. - ➕ Add
WrapHH
to wrap func(http.Handler) http.Handler as a middleware.
- ➕ Add
-
v1.7.0 Changes
March 30, 2020- ➕ Add
Context.WriteHeader
, an alias of http.ResponseWriter.WriteHeader. - ➕ Add
Context.IsAJAX
to determine whether it is an AJAX request. - 🌲 Write error to log.
- ➕ Add
-
v1.6.1 Changes
March 23, 2020- 🐛 Bug #21 Fix the call sequence of middleware.