Show / Hide Table of Contents

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 Source

BodyAsStream

The body of the response as .

Declaration
public Stream? BodyAsStream { get; set; }
Property Value
Type Description
System.Nullable<Stream>
| Improve this Doc View Source

BodyAsString

The body of the response as System.String.

Declaration
public string BodyAsString { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

BodyAsType

The body of the response converted to TResponseBody.

Declaration
public TResponseBody BodyAsType { get; set; }
Property Value
Type Description
TResponseBody
| Improve this Doc View Source

Error

A description of the error, if any.

Declaration
public string Error { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Headers

The System.Net.Http.Headers.HttpResponseHeaders.

Declaration
public HttpResponseHeaders Headers { get; set; }
Property Value
Type Description
System.Net.Http.Headers.HttpResponseHeaders
| Improve this Doc View Source

HttpRequestMessge

The entire object for debugging purposes.

Declaration
public HttpRequestMessage? HttpRequestMessge { get; set; }
Property Value
Type Description
System.Nullable<HttpRequestMessage>
| Improve this Doc View Source

HttpResponseMessage

The entire System.Net.Http.HttpResponseMessage object.

Declaration
public HttpResponseMessage? HttpResponseMessage { get; set; }
Property Value
Type Description
System.Nullable<HttpResponseMessage>
| Improve this Doc View Source

StatusCode

The System.Net.HttpStatusCode of the response.

Declaration
public HttpStatusCode StatusCode { get; set; }
Property Value
Type Description
System.Net.HttpStatusCode
  • Improve this Doc
  • View Source
Back to top Generated by DocFX