From 0f09c3a9b4626d9fe9979cf4d0521d6ae32ab646 Mon Sep 17 00:00:00 2001 From: Little Fedya Date: Sat, 10 Oct 2026 09:20:35 +0500 Subject: [PATCH] docs: include HTTP QUERY method in RouterGroup.Any (#4879) Co-authored-by: Bo-Yi Wu --- docs/doc.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/doc.md b/docs/doc.md index 366b249b..01edf52c 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -169,6 +169,7 @@ req := httptest.NewRequest(gin.MethodQuery, "/search", body) Keep in mind: +- `router.Any` also registers `QUERY` alongside standard HTTP methods. Handlers registered with `Any` should respect QUERY's safe and idempotent semantics when processing that method. - `QUERY` is not part of the `gin.IRoutes` interface. `*gin.Engine` and `*gin.RouterGroup` expose it directly; if you only hold an `IRoutes` value, assert to `gin.IQueryRoutes` first. ```go