func (c *DownloadClient) DownloadResource(ctx context.Context, resourceURL *url.URL) (r io.ReadCloser, err error) {
	resp, err := c.downloadFromURL(ctx, resourceURL)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return resp.Body, nil
}
// DownloadResource returns an io.ReadCloser to read the Resource from.
DownloadResource returns an io.ReadCloser to read the Resource from.
// DownloadResource returns an io . ReadCloser to read the Resource from .
func (c *DownloadClient) DownloadResource(ctx context.Context, resourceURL *url.URL) (r io.ReadCloser, err error) {
	resp, err := c.downloadFromURL(ctx, resourceURL)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return resp.Body, nil
}
func ( c * DownloadClient ) DownloadResource ( ctx context . Context , resourceURL * url . URL ) ( r io . ReadCloser , err error ) { resp , err := c . downloadFromURL ( ctx , resourceURL ) if err != nil { return nil , errors . Trace ( err ) } return resp . Body , nil }
DownloadResource returns an io.ReadCloser to read the Resource from.
DownloadResource returns an io . ReadCloser to read the Resource from .