diff options
author | Jonathan Amsterdam <jba@google.com> | 2023-09-13 16:58:24 -0400 |
---|---|---|
committer | Jonathan Amsterdam <jba@google.com> | 2023-09-14 00:00:28 +0000 |
commit | 495830acd6976c8a2b39dd4aa4fdc105ad72de52 (patch) | |
tree | a44f8bcbd8d75e67e2cd3ce5c607a6cbacde1616 /api | |
parent | fccd0b9b70255099691deca5dc1d577efcfc889b (diff) | |
download | go-495830acd6976c8a2b39dd4aa4fdc105ad72de52.tar.gz go-495830acd6976c8a2b39dd4aa4fdc105ad72de52.zip |
net/http: implement path value methods on Request
Add Request.PathValue and Request.SetPathValue,
and the fields on Request required to support them.
Populate those fields in ServeMux.ServeHTTP.
Updates #61410.
Change-Id: Ic88cb865b0d865a30d3b35ece8e0382c58ef67d1
Reviewed-on: https://go-review.googlesource.com/c/go/+/528355
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/61410.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/next/61410.txt b/api/next/61410.txt new file mode 100644 index 0000000000..01c8a2c3e8 --- /dev/null +++ b/api/next/61410.txt @@ -0,0 +1,2 @@ +pkg net/http, method (*Request) PathValue(string) string #61410 +pkg net/http, method (*Request) SetPathValue(string, string) #61410 |