router 增加 method

This commit is contained in:
黄孟柱
2021-07-27 18:32:49 +08:00
parent 907417d5d3
commit 6f368b76ef
6 changed files with 50 additions and 18 deletions

View File

@@ -19,8 +19,12 @@ const (
cmdHeader = "HEADER"
cmdQuery = "QUERY"
cmdHost = "HOST"
cmdMethod = "METHOD"
)
func toMethod()string {
return cmdMethod
}
func toLocation() string {
return cmdLocation
}
@@ -54,3 +58,6 @@ func isHost(cmd string) bool {
return cmd == cmdHost
}
func isMethod(cmd string)bool {
return cmd == cmdMethod
}