shurcooL / graphql

Package graphql provides a GraphQL client implementation.
MIT License
709 stars 282 forks source link

Refactor code by removing golang.org/x/net dependency #110

Closed alexandear closed 1 year ago

alexandear commented 1 year ago

This PR refactors code and replaces golang.org/x/net with standard net/http.

graphql uses only one Post method from golang.org/x/net. It's trivial and easy to replace with Do and NewRequestWithContext methods from net/http.