1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-17 01:43:02 +02:00

Updated docs, changes to static middleware config

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-05-10 11:52:04 -07:00
parent 799c6cff2a
commit 1afaa6ec0b
11 changed files with 41 additions and 44 deletions

View File

@ -8,11 +8,11 @@ type (
// MethodOverrideConfig defines the config for method override middleware.
MethodOverrideConfig struct {
// Getter is a function that gets overridden method from the request.
// Optional. Default values MethodFromHeader(echo.HeaderXHTTPMethodOverride).
Getter MethodOverrideGetter
}
// MethodOverrideGetter is a function that gets overridden method from the request
// Optional, with default values as `MethodFromHeader(echo.HeaderXHTTPMethodOverride)`.
MethodOverrideGetter func(echo.Context) string
)