Class HttpResponseMessageWrapper
Wrapper around HttpResponseMessage type that copies properties of HttpResponseMessage so that they are available after the HttpClient gets disposed.
Inherited Members
Namespace: k8s.Autorest
Assembly: KubernetesClient.dll
Syntax
public class HttpResponseMessageWrapper : HttpMessageWrapper
Constructors
View SourceHttpResponseMessageWrapper(HttpResponseMessage, string)
Initializes a new instance of the HttpResponseMessageWrapper class from HttpResponseMessage. and content.
Declaration
public HttpResponseMessageWrapper(HttpResponseMessage httpResponse, string content)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseMessage | httpResponse | |
| string | content |
Properties
View SourceReasonPhrase
Exposes the reason phrase, typically sent along with the status code.
Declaration
public string ReasonPhrase { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
StatusCode
Gets or sets the status code of the HTTP response.
Declaration
public HttpStatusCode StatusCode { get; protected set; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |