diff --git a/src/generated/IKubernetes.cs b/src/generated/IKubernetes.cs
index bd509cf7c..74e3ae438 100644
--- a/src/generated/IKubernetes.cs
+++ b/src/generated/IKubernetes.cs
@@ -6713,7 +6713,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Pod
@@ -6730,7 +6730,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Pod
@@ -6747,7 +6747,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Pod
@@ -6764,7 +6764,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Pod
@@ -6781,7 +6781,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Pod
@@ -6798,7 +6798,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy GET requests to Pod
@@ -6818,7 +6818,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Pod
@@ -6838,7 +6838,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Pod
@@ -6858,7 +6858,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Pod
@@ -6878,7 +6878,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Pod
@@ -6898,7 +6898,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Pod
@@ -6918,7 +6918,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy GET requests to Service
@@ -6935,7 +6935,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Service
@@ -6952,7 +6952,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Service
@@ -6969,7 +6969,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Service
@@ -6986,7 +6986,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Service
@@ -7003,7 +7003,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Service
@@ -7020,7 +7020,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNamespacedServiceWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy GET requests to Service
@@ -7040,7 +7040,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Service
@@ -7060,7 +7060,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Service
@@ -7080,7 +7080,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Service
@@ -7100,7 +7100,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Service
@@ -7120,7 +7120,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Service
@@ -7140,7 +7140,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNamespacedServiceWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy GET requests to Node
@@ -7154,7 +7154,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Node
@@ -7168,7 +7168,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Node
@@ -7182,7 +7182,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Node
@@ -7196,7 +7196,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Node
@@ -7210,7 +7210,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Node
@@ -7224,7 +7224,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNodeWithHttpMessagesAsync(string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy GET requests to Node
@@ -7241,7 +7241,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyGETNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyGETNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PUT requests to Node
@@ -7258,7 +7258,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPUTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPUTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy POST requests to Node
@@ -7275,7 +7275,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPOSTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPOSTNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy DELETE requests to Node
@@ -7292,7 +7292,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyDELETENodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyDELETENodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy HEAD requests to Node
@@ -7309,7 +7309,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyHEADNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyHEADNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// proxy PATCH requests to Node
@@ -7326,7 +7326,7 @@ public partial interface IKubernetes : System.IDisposable
///
/// The cancellation token.
///
- Task> ProxyPATCHNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ProxyPATCHNodeWithPathWithHttpMessagesAsync(string name, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// list or watch objects of kind ReplicationController
diff --git a/src/generated/Kubernetes.cs b/src/generated/Kubernetes.cs
index ca449950b..574d9ccdd 100644
--- a/src/generated/Kubernetes.cs
+++ b/src/generated/Kubernetes.cs
@@ -36009,7 +36009,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyGETNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36070,7 +36070,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -36101,26 +36101,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36159,7 +36146,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyPUTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36220,7 +36207,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -36251,26 +36238,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36309,7 +36283,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyPOSTNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36370,7 +36344,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -36401,26 +36375,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36459,7 +36420,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyDELETENamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36520,7 +36481,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -36551,26 +36512,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36609,7 +36557,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyHEADNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36701,26 +36649,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36759,7 +36694,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyPATCHNamespacedPodWithHttpMessagesAsync(string name, string namespaceParameter, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36820,7 +36755,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -36851,26 +36786,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -36912,7 +36834,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyGETNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -36979,7 +36901,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -37010,26 +36932,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -37071,7 +36980,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyPUTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -37138,7 +37047,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -37169,26 +37078,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -37230,7 +37126,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyPOSTNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -37297,7 +37193,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -37328,26 +37224,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -37389,7 +37272,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyDELETENamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -37456,7 +37339,7 @@ private void Initialize()
ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
}
cancellationToken.ThrowIfCancellationRequested();
- _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ _httpResponse = await HttpClient.SendAsync(_httpRequest, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
if (_shouldTrace)
{
ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
@@ -37487,26 +37370,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse();
+ var _result = new HttpOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
// Deserialize Response
if ((int)_statusCode == 200)
{
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
+ _result.Body = await _httpResponse.Content.ReadAsStreamAsync().ConfigureAwait(false);
}
if (_shouldTrace)
{
@@ -37548,7 +37418,7 @@ private void Initialize()
///
/// A response object containing the response body and response headers.
///
- public async Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ProxyHEADNamespacedPodWithPathWithHttpMessagesAsync(string name, string namespaceParameter, string path, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (name == null)
{
@@ -37646,26 +37516,13 @@ private void Initialize()
throw ex;
}
// Create Result
- var _result = new HttpOperationResponse