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:
parent
82917fd848
commit
ba1891b3dc
15
echo.go
15
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
|
// MIME types
|
||||||
const (
|
const (
|
||||||
MIMEApplicationJSON = "application/json"
|
MIMEApplicationJSON = "application/json"
|
||||||
|
Loading…
Reference in New Issue
Block a user