Sponsor
来源:Echo
浏览 607
扫码
分享
2020-02-28 20:08:49
Migration
Change Log
- Automatic TLS certificates via Let’s Encrypt
- Built-in support for graceful shutdown
- Utility functions to wrap standard handler and middleware
Map
type as shorthand for map[string]interface{}
- Context now wraps standard net/http Request and Response
- New configuration
Echo#ShutdownTimeout
Echo#DisableHTTP2
- New API
Echo#Start()
Echo#StartTLS()
Echo#StartAutoTLS()
Echo#StartServer()
Echo#Shutdown()
Echo#ShutdownTLS()
Context#Scheme()
Context#RealIP()
Context#IsTLS()
- Exposed the following properties instead of setter / getter functions on
Echo
instance:
Binder
Renderer
HTTPErrorHandler
Debug
Logger
- Enhanced redirect and CORS middleware
- Dropped static middleware in favor of
Echo#Static
- Dropped API
- Dropped standard
Context
support - Dropped support for
fasthttp
- Dropped deprecated API
- Moved
Logger
interface to root level - Moved website and examples to the main repo
- Updated docs and fixed numerous issues
Cookbook
当前内容版权归
Echo 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
Echo .