kubernetes/pkg/client/restclient
Clayton Coleman ce187f9c6a
Avoid double decoding all client responses
restclient must be able to deal with multiple types of servers. Alter
the behavior of restclient.Result#Raw() to not process the body on
error, but instead to return the generic error (which still matches the
error checking cases in api/error like IsBadRequest). If the caller uses
.Error(), .Into(), or .Get(), try decoding the body as a Status.

For older servers, continue to default apiVersion "v1" when calling
restclient.Result#Error(). This was only for 1.1 servers and the
extensions group, which we have since fixed.

This removes a double decode of very large objects (like LIST).
2016-11-01 22:55:51 -04:00
..
fake move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
BUILD autogenerated 2016-10-21 17:32:32 -07:00
client_test.go Avoid double decoding all client responses 2016-11-01 22:55:51 -04:00
client.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
config_test.go Replace negotiation with a new method that can extract info 2016-10-28 11:30:11 -04:00
config.go Add global timeout flag 2016-10-14 09:57:40 -04:00
plugin_test.go Use multiple clients in load test to avoid "no cached connections" errors. 2016-09-29 16:32:57 +02:00
plugin.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
request_test.go Avoid double decoding all client responses 2016-11-01 22:55:51 -04:00
request.go Avoid double decoding all client responses 2016-11-01 22:55:51 -04:00
transport.go Use multiple clients in load test to avoid "no cached connections" errors. 2016-09-29 16:32:57 +02:00
url_utils_test.go remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
url_utils.go Fix problem specifying fqdn:port in command line 2016-07-05 10:10:12 -04:00
urlbackoff_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
urlbackoff.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
versions.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00