Documentation
¶
Index ¶
- Variables
- type HTTPClient
- func (client *HTTPClient) Delete(path string, headers map[string]string) (*http.Response, error)
- func (client *HTTPClient) Get(path string, headers map[string]string) (*http.Response, error)
- func (client *HTTPClient) Post(path string, body interface{}, headers map[string]string) (*http.Response, error)
- func (client *HTTPClient) Put(path string, body interface{}, headers map[string]string) (*http.Response, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrConnectionIssue is an error that is thrown when a very specific error is // returned from our http request that usually implies bad connections. ErrConnectionIssue = errors.New("DNS problem while connecting to Shopify, this indicates a problem with your internet connection") // ErrInvalidProxyURL is returned if a proxy url has been passed but is improperly formatted ErrInvalidProxyURL = errors.New("invalid proxy URI") )
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
HTTPClient encapsulates an authenticate http client to issue theme requests to Shopify
func NewClient ¶
func NewClient(params Params) (*HTTPClient, error)
NewClient will create a new authenticated http client that will communicate with Shopify
Click to show internal directories.
Click to hide internal directories.