Show / Hide Table of Contents

Class HttpClientResponse

HTTPレスポンスクラス

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)

正常レスポンスのコンストラクタ

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

レスポンス内容

HttpResponseMessage message

HttpClientの返すHttpResponseMessage

HttpClientResponse(TaskCanceledException)

エラーが発生した場合のコンストラクタ

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

発生したエラー

Properties

Data

レスポンスのバイト配列

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

IsHttpError

HTTPエラーが発生した場合はtrueとなる

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

IsNetworkError

ネットワークエラーが発生した場合はtrueとなる

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

RawErrorMessage

エラーメッセージ

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

ResponseHeaders

レスポンスのヘッダ

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

StatusCode

HTTPステータスコード

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

Text

レスポンステキスト

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

Implements

IHttpResponse
In This Article
Back to top Generated by DocFX