]> Cypherpunks repositories - gostls13.git/commit
net/http/httptest: add NewRequestWithContext
authorKevin Burke <kevin@burke.dev>
Thu, 7 Dec 2023 21:13:25 +0000 (13:13 -0800)
committerDamien Neil <dneil@google.com>
Mon, 11 Mar 2024 18:09:14 +0000 (18:09 +0000)
commit3a41bfac9bfddc3663d81b8296dbe8904baef44e
tree4656792d8f40ecdcb79c2eb543520bfdd1618a6e
parentc8e4f8c7756d67e27d2cfe4383cb90cf9f97d5a3
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>
api/next/59473.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/net/http/httptest/59473.md [new file with mode: 0644]
src/net/http/httptest/httptest.go
src/net/http/httptest/httptest_test.go