-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Request context question #4127
Copy link
Copy link
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels