1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00

Updated README.md with built-in middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-04-06 20:01:24 -07:00
parent e37b54e73f
commit 0172fe675b

View File

@ -197,7 +197,7 @@ Server any file from static directory for path `/static/*`.
e.Static("/static", "static")
```
[More...](https://labstack.com/echo/guide/static-files/)
##### [More...](https://labstack.com/echo/guide/static-files/)
### [Template Rendering](https://labstack.com/echo/guide/templates/)
@ -229,7 +229,19 @@ e.Get("/users", func(c echo.Context) error {
}, track)
```
[More...](https://labstack.com/echo/guide/middleware/)
#### Built-in Middleware
Middleware | Description
:--- | :---
[Logger](https://labstack.com/echo/guide/middleware/#logger-middleware:37ab2f15ff048f67959bcac0a6032f32) | Log HTTP requests
[Recover](https://labstack.com/echo/guide/middleware/#recover-middleware:37ab2f15ff048f67959bcac0a6032f32) | Recover from panics
[Gzip](https://labstack.com/echo/guide/middleware/#gzip-middleware:37ab2f15ff048f67959bcac0a6032f32) | Send gzip HTTP response
[BasicAuth](https://labstack.com/echo/guide/middleware/#basicauth-middleware:37ab2f15ff048f67959bcac0a6032f32) | HTTP basic authentication
[Static](https://labstack.com/echo/guide/static-files/#using-static-middleware:123f9d1043075fe4874616541b409e4d) | Serve static files
[AddTrailingSlash](https://labstack.com/echo/guide/middleware/#addtrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Add trailing slash to the request URI
[RemoveTrailingSlash](https://labstack.com/echo/guide/middleware/#removetrailingslash-middleware:37ab2f15ff048f67959bcac0a6032f32) | Remove trailing slash from the request URI
##### [More...](https://labstack.com/echo/guide/middleware/)
### Next