Skip to content

Commit ba1891b

Browse files
alexaandruvishr
authored andcommitted
Add back exported HTTP method constants (labstack#1209)
1 parent 82917fd commit ba1891b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

echo.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ type (
128128
}
129129
)
130130

131+
// HTTP methods
132+
// NOTE: Deprecated, please use the stdlib constants directly instead.
133+
const (
134+
CONNECT = http.MethodConnect
135+
DELETE = http.MethodDelete
136+
GET = http.MethodGet
137+
HEAD = http.MethodHead
138+
OPTIONS = http.MethodOptions
139+
PATCH = http.MethodPatch
140+
POST = http.MethodPost
141+
//PROPFIND = "PROPFIND"
142+
PUT = http.MethodPut
143+
TRACE = http.MethodTrace
144+
)
145+
131146
// MIME types
132147
const (
133148
MIMEApplicationJSON = "application/json"

0 commit comments

Comments
 (0)