• Clayton Coleman's avatar
    Use response content-type on restclient errors · 203cf2be
    Clayton Coleman authored
    Also allow a new AcceptContentTypes field to allow the client to ask for
    a fallback serialization when getting responses from the server. This
    allows a new client to ask for protobuf and JSON, falling back to JSON
    when necessary.
    
    The changes to request.go allow error responses from non-JSON servers to
    be properly decoded.
    203cf2be
Name
Last commit
Last update
..
client.go Loading commit data...
client_test.go Loading commit data...
config.go Loading commit data...
config_test.go Loading commit data...
plugin.go Loading commit data...
plugin_test.go Loading commit data...
request.go Loading commit data...
request_test.go Loading commit data...
transport.go Loading commit data...
url_utils.go Loading commit data...
url_utils_test.go Loading commit data...
urlbackoff.go Loading commit data...
urlbackoff_test.go Loading commit data...
versions.go Loading commit data...