Show / Hide Table of Contents

Class UnityWebRequestResponse

Class to handle response data

Inheritance
Object
UnityWebRequestResponse
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.Unity.Networking
Assembly: Pixiv.VroidSdk.Unity.dll
Syntax
public class UnityWebRequestResponse : IHttpResponse

Constructors

UnityWebRequestResponse(UnityWebRequest)

Constructor

Declaration
public UnityWebRequestResponse(UnityWebRequest request)
Parameters
Type Name Description
UnityWebRequest request

UnityWebRequest object

Properties

Data

Return response body as byte array

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

IsDone

Determine if HTTP request is complete or not

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

IsHttpError

Is HTTP code to display error or not

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

IsNetworkError

Is network error or not

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

Method

HTTP request method

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

RawErrorMessage

Error message

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

ResponseHeaders

HTTP response header

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

StatusCode

HTTP response status code

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

Text

Return response body as UTF8 string

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

Uri

Request URI

Declaration
public Uri Uri { get; }
Property Value
Type Description
Uri

Implements

IHttpResponse
In This Article
Back to top Generated by DocFX