client-go: extract warning headers from API responses

Kubernetes-commit: b1098bd0d53658bfb945e485683d543ab7dc73ba
This commit is contained in:
Jordan Liggitt
2019-01-17 11:35:07 -05:00
committed by Kubernetes Publisher
parent 63eae69e3c
commit 75f9ee62c1
5 changed files with 213 additions and 18 deletions

View File

@@ -94,6 +94,10 @@ type RESTClient struct {
// overridden.
rateLimiter flowcontrol.RateLimiter
// warningHandler is shared among all requests created by this client.
// If not set, defaultWarningHandler is used.
warningHandler WarningHandler
// Set specific behavior of the client. If not set http.DefaultClient will be used.
Client *http.Client
}