Skip to content

Commit

Permalink
Add back exported HTTP method constants (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexaandru authored and vishr committed Oct 15, 2018
1 parent 82917fd commit ba1891b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ba1891b

Please sign in to comment.