Skip to content

Releases: labstack/echo

v1.3

01 Dec 23:10
Compare
Choose a tag to compare

Echo v1.3

Website
Godoc

  • Support for golang.org/x/net/context
  • Logging with option to set prefix, output and levels.
    • Echo#SetLogPrefix()
    • Echo#SetLogOutput()
    • Echo#SetLogLevel()
  • Echo#Hook Registers a callback to alter request/response objects even before it hits the router or any middleware.
    • Echo#Hook()
  • Echo#AutoIndex() - Enables/disables automatically creating an index page for the directory.
  • Context#Path() - Returns the registered path for a handler, it can be used in the middleware for logging purpose.
  • Context#JSONIndent() - JSON response with indentation.
  • Context#XMLIndent - XML response with indentation.
  • Context#Echo() - Returns the Echo instance.
  • Dropped API
    • Echo#StripTrailingSlash() - Use Echo#Hook()
  • Refactored API
    • Context#String() - Dropped Printf, an option argument.
    • Context#HTML() - Dropped Printf, an optional argument.
  • Recipes
  • Community Packages
  • Updated docs
  • Closed many PRs and issues (v1.2.0...v1.3).

v1.2.0

11 Oct 21:15
Compare
Choose a tag to compare
  • New API
    • Echo.Any - Any adds a route > handler to the router for all HTTP methods.
    • Echo.Match - Match adds a route > handler to the router for multiple HTTP methods provided.
    • Response.Committed - Getter function for committed status.
    • Context.File - Sends response as file with option to download as attachment.
    • Context.JSONP - JSONP sends a JSONP response with status code. It uses callback to construct the JSONP payload.
  • Dropped API
    • RedirectToSlash middleware
  • Refactored API
    • Echo.Debug
    • Echo.SetDebug
    • StripTrailingSlash middleware moved to Echo.StripTrailingSlash
  • Enhancements
  • Closed the following issues

v1.1.0

18 Jul 06:02
Compare
Choose a tag to compare

Production ready

22 Jun 22:50
Compare
Choose a tag to compare
  • New API
    • ServeDir - ServeDir serves files from a directory
    • DefaultHTTPErrorHandler - Invokes the default HTTP error handler
  • Improved router performance
  • More test coverage
  • Fixed issues
  • Examples
    • Steaming response
  • New URL for the website http://echo.labstack.com

Group separated from Echo

23 May 04:29
Compare
Choose a tag to compare
Pre-release
  • Better handling for WebSocket in middleware
  • Separated Group from Echo to limit API
  • Updated docs

Encapsulation

22 May 11:42
Compare
Choose a tag to compare
Encapsulation Pre-release
Pre-release

Encapsulated Context's fields and exposed them via public functions.

Echo.HandlerFunc changed

20 May 23:46
Compare
Choose a tag to compare
Pre-release

Echo.HandlerFunc changed from func (*Context) *HTTPError to func (*Context) error

Smashing new features

19 May 03:32
Compare
Choose a tag to compare
Smashing new features Pre-release
Pre-release
  • Added following middleware
    • Panic recover
    • Basic auth
    • Strip trailing slash
    • Redirect to slash
    • Gzip
  • Support to serve favicon
  • Enhanced priority in router
  • Wrapped Flush, Hijack and CloseNotify functions in response.
  • Fixed issues: #51, #53, #57, #63, #65, #67, #68
  • Dropped NotFoundHandler in favor of HTTPErrorHandler

Centralized HTTP error handling

06 May 23:39
Compare
Choose a tag to compare
Pre-release

v0.0.11

29 Apr 17:41
Compare
Choose a tag to compare
v0.0.11 Pre-release
Pre-release
  • Support for func(http.Handler) http.Handler middleware
  • Support for echo.HandlerFunc handler
  • Middleware in a separate package
  • Reverse route lookup using echo.URI
  • Improved website/documentation
  • Fixed issues