Skip to content

Commit

Permalink
feat: net/http/httputilmore: add Methods()
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Dec 11, 2023
1 parent 3777260 commit a00b1ee
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions net/http/httputilmore/http_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,16 @@ func MethodsMap() map[string]int {
http.MethodTrace: 1,
}
}

func Methods() []string {
return []string{
http.MethodConnect,
http.MethodDelete,
http.MethodGet,
http.MethodHead,
http.MethodOptions,
http.MethodPatch,
http.MethodPost,
http.MethodPut,
http.MethodTrace}
}

0 comments on commit a00b1ee

Please sign in to comment.