Class ResponseObject<TResponseBody>
An object containing information about the response of the current request.
Inheritance
System.Object
ResponseObject<TResponseBody>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Geko.HttpClientService.Models
Assembly: Geko.HttpClientService.dll
Syntax
public class ResponseObject<TResponseBody>
Type Parameters
Name | Description |
---|---|
TResponseBody | Type of the body of the response. |
Properties
| Improve this Doc View SourceBodyAsStream
The body of the response as
Declaration
public Stream? BodyAsStream { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Stream> |
BodyAsString
The body of the response as System.String.
Declaration
public string BodyAsString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BodyAsType
The body of the response converted to TResponseBody
.
Declaration
public TResponseBody BodyAsType { get; set; }
Property Value
Type | Description |
---|---|
TResponseBody |
Error
A description of the error, if any.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
System.String |
HasError
A boolean indicating if there is an error in the current request.
Declaration
public bool HasError { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Headers
The System.Net.Http.Headers.HttpResponseHeaders.
Declaration
public HttpResponseHeaders Headers { get; set; }
Property Value
Type | Description |
---|---|
System.Net.Http.Headers.HttpResponseHeaders |
HttpRequestMessge
The entire
Declaration
public HttpRequestMessage? HttpRequestMessge { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HttpRequestMessage> |
HttpResponseMessage
The entire System.Net.Http.HttpResponseMessage object.
Declaration
public HttpResponseMessage? HttpResponseMessage { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HttpResponseMessage> |
StatusCode
The System.Net.HttpStatusCode of the response.
Declaration
public HttpStatusCode StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |