mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-07-31 06:48:18 +08:00
feat: add HTTP QUERY method support (RFC 10008)
- Add MethodQuery constant to touka.go - Add QUERY() convenience method to Engine and RouterGroup - Add examples/query/main.go demonstrating usage - All existing tests pass
This commit is contained in:
parent
d439662adf
commit
51ee66871f
3 changed files with 64 additions and 0 deletions
2
touka.go
2
touka.go
|
|
@ -58,6 +58,7 @@ var (
|
|||
MethodConnect = "CONNECT"
|
||||
MethodOptions = "OPTIONS"
|
||||
MethodTrace = "TRACE"
|
||||
MethodQuery = "QUERY" // RFC 10008 - The HTTP QUERY Method
|
||||
)
|
||||
|
||||
var MethodsSet = map[string]struct{}{
|
||||
|
|
@ -70,4 +71,5 @@ var MethodsSet = map[string]struct{}{
|
|||
MethodConnect: {},
|
||||
MethodOptions: {},
|
||||
MethodTrace: {},
|
||||
MethodQuery: {},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue