1
0
mirror of https://github.com/labstack/echo.git synced 2025-01-12 01:22:21 +02:00

Add back exported HTTP method constants (#1209)

This commit is contained in:
Alexandru Ungur 2018-10-15 10:31:26 +03:00 committed by Vishal Rana
parent 82917fd848
commit ba1891b3dc

15
echo.go
View File

@ -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 // MIME types
const ( const (
MIMEApplicationJSON = "application/json" MIMEApplicationJSON = "application/json"