Class HttpMessageWrapper
Base class used to wrap HTTP requests and responses to preserve data after disposal of HttpClient.
Inherited Members
Namespace: k8s.Autorest
Assembly: KubernetesClient.dll
Syntax
public abstract class HttpMessageWrapper
Constructors
View SourceHttpMessageWrapper()
Initializes a new instance of the HttpMessageWrapper class.
Declaration
protected HttpMessageWrapper()
Properties
View SourceContent
Exposes the HTTP message contents.
Declaration
public string Content { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Headers
Gets the collection of HTTP headers.
Declaration
public IDictionary<string, IEnumerable<string>> Headers { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, IEnumerable<string>> |
Methods
View SourceCopyHeaders(HttpHeaders)
Copies HTTP message headers to the error object.
Declaration
protected void CopyHeaders(HttpHeaders headers)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpHeaders | headers | Collection of HTTP headers. |