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

Updated docs

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-05-12 18:14:00 -07:00
parent 98dd8bf9e9
commit 1aa22ce09b
2 changed files with 6 additions and 3 deletions

View File

@ -242,6 +242,7 @@ Middleware | Description
[JWTAuth](https://labstack.com/echo/guide/jwt-middleware) | JWT authentication
[Secure](https://labstack.com/echo/guide/secure-middleware) | Protection against attacks
[CORS](https://labstack.com/echo/guide/cors-middleware) | Cross-Origin Resource Sharing
[CSRF](https://labstack.com/echo/guide/csrf-middleware) | Cross-Site Request Forgery
[Static](https://labstack.com/echo/guide/static-middleware) | Serve static files
[AddTrailingSlash](https://labstack.com/echo/guide/add-trailing-slash-middleware) | Add trailing slash to the request URI
[RemoveTrailingSlash](https://labstack.com/echo/guide/remove-trailing-slash-middleware) | Remove trailing slash from the request URI

View File

@ -30,18 +30,20 @@ type (
// Optional. Default value none.
CookieDomain string
// Paht of the CSRF cookie.
// Path of the CSRF cookie.
// Optional. Default value none.
CookiePath string
// Expiriation time of the CSRF cookie.
// Optioanl. Default value 24hrs.
// Expiration time of the CSRF cookie.
// Optional. Default value 24H.
CookieExpires time.Time
// Indicates if CSRF cookie is secure.
CookieSecure bool
// Optional. Default value false.
// Indicates if CSRF cookie is HTTP only.
// Optional. Default value false.
CookieHTTPOnly bool
}
)