Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion middleware/method_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ type MethodOverrideConfig struct {
Getter MethodOverrideGetter
}

// MethodOverrideGetter is a function that gets overridden method from the request
// MethodOverrideGetter is a function that gets overridden method from the request.
// The returned value should be a standard HTTP method name as used by net/http
// (e.g. http.MethodDelete, "DELETE"). The middleware does not normalize case or
// trim spaces — callers / Getter implementations should return a valid method.
type MethodOverrideGetter func(c *echo.Context) string

// DefaultMethodOverrideConfig is the default MethodOverride middleware config.
Expand Down
Loading