Class UnityWebRequestResponse
Class to handle response data
Implements
Inherited Members
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 |