diff --git a/echo.go b/echo.go index 6581937f7..8cc91b2d1 100644 --- a/echo.go +++ b/echo.go @@ -128,6 +128,21 @@ type ( } ) +// HTTP methods +// NOTE: Deprecated, please use the stdlib constants directly instead. +const ( + CONNECT = http.MethodConnect + DELETE = http.MethodDelete + GET = http.MethodGet + HEAD = http.MethodHead + OPTIONS = http.MethodOptions + PATCH = http.MethodPatch + POST = http.MethodPost + //PROPFIND = "PROPFIND" + PUT = http.MethodPut + TRACE = http.MethodTrace +) + // MIME types const ( MIMEApplicationJSON = "application/json"