type Method string
const (
MethodGet Method = "GET"
MethodHead Method = "HEAD"
MethodPost Method = "POST"
MethodPut Method = "PUT"
MethodPatch Method = "PATCH"
MethodDelete Method = "DELETE"
MethodConnect Method = "CONNECT"
MethodOptions Method = "OPTIONS"
MethodTrace Method = "TRACE"
)
var (
AllMethods = []Method{MethodGet, MethodHead, MethodPost, MethodPut, MethodPatch, MethodDelete, MethodConnect, MethodOptions, MethodTrace}
AllMethodsStrings = []string{string(MethodGet), string(MethodHead), string(MethodPost), string(MethodPut), string(MethodPatch), string(MethodDelete), string(MethodConnect), string(MethodOptions), string(MethodTrace)}
AllMethodsJoined = strings.Join(AllMethodsStrings, ",")
)