All Versions
11
Latest Version
Avg Release Cycle
5 days
Latest Release
339 days ago

Changelog History
Page 1

  • v1.12.2 Changes

    May 13, 2020
    • Context.Error, Context.NotFound, Context.Redirect, Context.ServeFile, Context.ServeContent return a nil error.
    • Context.Error(msg string, code int) was changed as Context.Error(code int, msg string).
    • Context.Redirect(url string, code int) was changed as Context.Redirect(code int, url string).
  • v1.12.1 Changes

    May 05, 2020
    • ✂ Remove Router.paramsPool.
  • 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 of http.ResponseWriter.Header().Set.
  • v1.11.0 Changes

    April 15, 2020
    • ➕ Add Map: an alias of map[string]interface{}.
    • ➕ Add Decoder, Router.Decoder and Context.Decode for decoding request's input.
    • ➕ Add Context.Stringf.
  • 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 and Content.SetContentTypeXML append charset=utf-8 to content type header.
    • ➕ Add Context.HTML to send HTML response.
    • ➕ Add Context.Cookie and Context.Cookies.
    • ➕ Add Context.FormValue.
    • ➕ Add Context.PostFormValue.
    • ➕ Add Context.QueryString.
    • ➕ Add Context.QueryParams and Context.QueryParam.
    • ➕ Add Context.JSONP and Context.JSONPCallback.
    • ➕ Add Context.Render to render a template.
    • ➕ Add Context.RouteURL to generate URL of the naming route.
    • ➕ Add Context.Emit and Context.Blob.
    • ➕ Add Context.HtmlBlob.
    • ➕ Add Context.XMLBlob.
    • ➕ Add Context.JSONBlob.
    • ➕ Add Context.JSONPBlob and Context.JSONPCallbackBlob.
    • ➕ Add RecoveryLogger.
  • v1.8.1 Changes

    April 01, 2020
    • 🛠 Fix WrapHH doesn't returns the error of final handle.
  • 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.
  • 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.
  • v1.6.1 Changes

    March 23, 2020
    • 🐛 Bug #21 Fix the call sequence of middleware.