Original post

Hello all,

To use a context for HTTP requests, I’m wondering if I should use either:

Are there any differences?

Right now I’m leaning towards using http.NewRequestWithContext so that I don’t have to add the godoc.org/golang.org/x/net/context/ctxhttp dependency, but I’m interested in your opinions.

Thanks!!