helm/pkg/getter
longkai 0d9ebc7885 refactor(getter): refine http GET request
It just makes the code better, I suppose the following is rational:

- use standard libaray common constants instead of hardcode though it's
  really common
- close the response body even if the http status code is not 200 OK.
  The doc says *It is the caller's responsibility to close Body*.
- move the `bytes.Buffer` return value declaration where it gets used.

Signed-off-by: longkai <im.longkai@gmail.com>
2021-06-25 13:18:48 +08:00
..
testdata Fixed bug - The flags --cert-file/--key-file where ignored when --insecure-skip-tls-verify flag is set (#9070) 2020-12-17 13:49:16 -07:00
doc.go change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
getter.go tweak basic handling 2021-06-15 06:53:31 -04:00
getter_test.go Address error on deletion of old dependencies 2020-12-18 16:29:16 -06:00
httpgetter.go refactor(getter): refine http GET request 2021-06-25 13:18:48 +08:00
httpgetter_test.go tweak basic handling 2021-06-15 06:53:31 -04:00
ocigetter.go initialize registry client in oci getter 2021-02-24 14:38:37 -05:00
ocigetter_test.go add test to ensure OCIGetter registryClient is set 2021-02-24 18:02:37 -05:00
plugingetter.go Updating the module for v3 as the major version 2019-10-03 14:27:05 -04:00
plugingetter_test.go fix(pkg/cli): ensure correct configuration from kubeconfig file 2020-04-23 12:20:14 -07:00