1 2
The new [`NewRequestWithContext`](/pkg/net/http/httptest#NewRequestWithContext) method creates an incoming request with a [`context.Context`](/pkg/context#Context).