1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

Added MiddlewareFunc to the list of supported middleware, #47.

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-05-10 21:13:14 -07:00
parent 6e251861db
commit 3b87f90bfd
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
- Fast :rocket: HTTP router which smartly prioritize routes. - Fast :rocket: HTTP router which smartly prioritize routes.
- Extensible middleware/handler, supports: - Extensible middleware/handler, supports:
- Middleware - Middleware
- `MiddlewareFunc` - `echo.MiddlewareFunc`
- `func(echo.HandlerFunc) echo.HandlerFunc` - `func(echo.HandlerFunc) echo.HandlerFunc`
- `func(*echo.Context) *echo.HTTPError` - `func(*echo.Context) *echo.HTTPError`
- `func(*echo.Context)` - `func(*echo.Context)`

View File

@ -13,9 +13,10 @@ Echo is a fast HTTP router (zero memory allocation) and micro web framework in G
- Fast HTTP router which smartly prioritize routes. - Fast HTTP router which smartly prioritize routes.
- Extensible middleware/handler, supports: - Extensible middleware/handler, supports:
- Middleware - Middleware
- `func(*echo.Context)` - `echo.MiddlewareFunc`
- `func(*echo.Context) *echo.HTTPError`
- `func(echo.HandlerFunc) echo.HandlerFunc` - `func(echo.HandlerFunc) echo.HandlerFunc`
- `func(*echo.Context) *echo.HTTPError`
- `func(*echo.Context)`
- `func(http.Handler) http.Handler` - `func(http.Handler) http.Handler`
- `http.Handler` - `http.Handler`
- `http.HandlerFunc` - `http.HandlerFunc`