aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChen.Zhidong <njutczd@gmail.com>2024-05-16 16:27:58 +0000
committerJonathan Amsterdam <jba@google.com>2024-05-16 18:42:34 +0000
commita523152ea1df8d39d923ed90d19662896eff0607 (patch)
treea962a3f08a8394371615995b982b42f10efb9b9c /doc
parent06b45781603ec6998012ac63b2c0bda32600f682 (diff)
downloadgo-a523152ea1df8d39d923ed90d19662896eff0607.tar.gz
go-a523152ea1df8d39d923ed90d19662896eff0607.zip
net/http: add Pattern field in Request to return matched pattern info
Fixes #66405 Change-Id: Icd80944b6ca081aa7addd4fb85d2b3c29b6c9542 GitHub-Last-Rev: c6e32742c4b733230c82627571b423de45997c24 GitHub-Pull-Request: golang/go#66618 Reviewed-on: https://go-review.googlesource.com/c/go/+/574997 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/next/6-stdlib/99-minor/net/http/66405.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/net/http/66405.md b/doc/next/6-stdlib/99-minor/net/http/66405.md
new file mode 100644
index 0000000000..c827b4b219
--- /dev/null
+++ b/doc/next/6-stdlib/99-minor/net/http/66405.md
@@ -0,0 +1,3 @@
+For inbound requests, the new [Request.Pattern] field contains the [ServeMux]
+pattern (if any) that matched the request. This field is not set when
+`GODEBUG=httpmuxgo121=1` is set.