diff options
author | Kevin Burke <kevin@burke.dev> | 2023-12-07 13:13:25 -0800 |
---|---|---|
committer | Damien Neil <dneil@google.com> | 2024-03-11 18:09:14 +0000 |
commit | 3a41bfac9bfddc3663d81b8296dbe8904baef44e (patch) | |
tree | 4656792d8f40ecdcb79c2eb543520bfdd1618a6e /doc | |
parent | c8e4f8c7756d67e27d2cfe4383cb90cf9f97d5a3 (diff) | |
download | go-3a41bfac9bfddc3663d81b8296dbe8904baef44e.tar.gz go-3a41bfac9bfddc3663d81b8296dbe8904baef44e.zip |
net/http/httptest: add NewRequestWithContext
This matches the net/http API.
Updates #59473.
Change-Id: I99917cef3ed42a0b4a2b39230b492be00da8bbfd
Reviewed-on: https://go-review.googlesource.com/c/go/+/548355
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/next/6-stdlib/99-minor/net/http/httptest/59473.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/next/6-stdlib/99-minor/net/http/httptest/59473.md b/doc/next/6-stdlib/99-minor/net/http/httptest/59473.md new file mode 100644 index 0000000000..65cc6076cf --- /dev/null +++ b/doc/next/6-stdlib/99-minor/net/http/httptest/59473.md @@ -0,0 +1,2 @@ +The new NewRequestWithContext method creates an incoming request with +a Context. |