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:
wjqserver 2026-07-15 02:15:54 +08:00
parent d439662adf
commit 51ee66871f
3 changed files with 64 additions and 0 deletions

View file

@ -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: {},
}