The current implementation of the client has the NewRequest method which uses http.NewRequest and then we use withContext which just wraps req.WithContext to copy the context. Is there a compelling reason why this pattern is used instead of using http.NewRequestWithContext which would save having to copy every request just to set the context which is known when the request is created?
The current implementation of the client has the
NewRequestmethod which useshttp.NewRequestand then we usewithContextwhich just wrapsreq.WithContextto copy the context. Is there a compelling reason why this pattern is used instead of usinghttp.NewRequestWithContextwhich would save having to copy every request just to set the context which is known when the request is created?