Show / Hide Table of Contents

Class HttpClientResponse

HTTP response class

Inheritance
Object
HttpClientResponse
Implements
IHttpResponse
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Networking
Assembly: Pixiv.VroidSdk.dll
Syntax
public class HttpClientResponse : IHttpResponse

Constructors

HttpClientResponse(Byte[], HttpResponseMessage)

Normal response constructor

Declaration
public HttpClientResponse(byte[] body, HttpResponseMessage message)
Parameters
Type Name Description
Byte[] body

Response body

HttpResponseMessage message

HttpResponseMessage returned by HttpClient

HttpClientResponse(TaskCanceledException)

Constructor if error occurs

Declaration
public HttpClientResponse(TaskCanceledException e)
Parameters
Type Name Description
TaskCanceledException e

Error that occurred

Properties

Data

Response byte array

Declaration
public byte[] Data { get; }
Property Value
Type Description
Byte[]

IsHttpError

Becomes true when HTTP error occurs

Declaration
public bool IsHttpError { get; }
Property Value
Type Description
Boolean

IsNetworkError

Becomes true when network error occurs

Declaration
public bool IsNetworkError { get; }
Property Value
Type Description
Boolean

RawErrorMessage

Error message

Declaration
public string RawErrorMessage { get; }
Property Value
Type Description
String

ResponseHeaders

Response header

Declaration
public Dictionary<string, string> ResponseHeaders { get; }
Property Value
Type Description
Dictionary<String, String>

StatusCode

HTTP status code

Declaration
public int StatusCode { get; }
Property Value
Type Description
Int32

Text

Response text

Declaration
public string Text { get; }
Property Value
Type Description
String

Implements

IHttpResponse
In This Article
Back to top Generated by DocFX