func()

in dash.go [28:42]


func (d *Dash) getObject(ctx context.Context, headers http.Header, method, key string) (*http.Response, error) {
	// build up the GCS URL
	url := fmt.Sprintf("https://%s.%s/%s", d.Bucket, gcsHost, key)

	// create the request against GCS
	req, err := http.NewRequestWithContext(ctx, method, url, nil)
	if err != nil {
		return nil, err
	}
	req.Header = headers

	// run the request
	return d.Client.Do(req)

}