func WithHTTPProxy(proxy string) ClientOption {
	return func(c *Client) {
		proxy, err := url.Parse(proxy)
		if err != nil {
			log.Println(err)
			return
		}
		if t, ok := http.DefaultTransport.(*http.Transport); ok {
			t.Proxy = http.ProxyURL(proxy)
		}
	}
}
WithHTTPProxy returns a ClientOption configured with the given http proxy
package graphql
import (
	"log"
	"net/http"
	"net/url"
	"time"
)
type ClientOption func(*Client)
func WithAPIKey(apiKey string) ClientOption {
	return func(c *Client) {
		c.header.Set("X-Api-Key", apiKey)
	}
}
func WithCredential(credential string) ClientOption {
	return func(c *Client) {
		c.header.Set("Authorization", credential)
	}
}