List contains all the supported HTTP methods. They are sorted by their integer value, however
Unknown method is not included. So in order to index the List, you must subtract 1 first.
const (
Unknown Method = iota GET
HEAD
POST
PUT
DELETE
CONNECT
OPTIONS
TRACE
PATCH
// Count is the last one enum, so contains the greatest integer value of all the// methods. So real number of methods is lower by 1
Count = iota - 1
)