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:
@ -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
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user