Go added http.NewRequestWithContext in go 1.13 which fixes several of the issues with the original http.NewRequest in terms of instantiating the *http.Request with saner defaults and avoiding the need to copy if you want to set a *context.Context on the request.
It would be nice if this library supported that behavior.
Go added http.NewRequestWithContext in go 1.13 which fixes several of the issues with the original http.NewRequest in terms of instantiating the
*http.Request
with saner defaults and avoiding the need to copy if you want to set a *context.Context on the request.It would be nice if this library supported that behavior.