perkeep/pkg/misc/amazon/s3
Brad Fitzpatrick eb27581da7 httputil: add DecodeJSON and CloseBody helpers, then use them everywhere
httputil.CloseBody closes a http.Response.Body nicely, such that it's
more likely to be re-used.

httputil.DecodeJSON parses JSON from a Response.Body and closes the
body. It also keeps a temporary copy of the input, for error messages.

Then use them everywhere, to improve HTTP TCP connection re-use.

And misc other clean-ups.

Change-Id: I5dc44be0165b13659459ed29ce5ab44c17d9739f
2014-01-28 22:00:52 -08:00
..
auth.go Support alternate S3 hostnames 2013-09-01 09:50:35 -07:00
auth_test.go Support alternate S3 hostnames 2013-09-01 09:50:35 -07:00
client.go httputil: add DecodeJSON and CloseBody helpers, then use them everywhere 2014-01-28 22:00:52 -08:00
client_test.go Support alternate S3 hostnames 2013-09-01 09:50:35 -07:00