mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Updated README.md with built-in middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
e37b54e73f
commit
0172fe675b
16
README.md
16
README.md
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user