VRoid for Developers
始める
ドキュメント
ガイドライン
サポート
Download
Show / Hide Table of Contents

Interface IHttpConnection

HTTP接続を担うインターフェース

Namespace: Pixiv.VroidSdk.Networking.Connections
Assembly: Pixiv.VroidSdk.dll
Syntax
public interface IHttpConnection

Properties

Header

HTTPのリクエストヘッダ

Declaration
IHttpHeader Header { get; set; }
Property Value
Type Description
IHttpHeader

OnDownloadProgressChanged

ダウンロードの進捗があった場合のコールバック

Declaration
Action<float> OnDownloadProgressChanged { get; set; }
Property Value
Type Description
Action<Single>

OnUploadProgressChanged

アップロードの進捗があった場合のコールバック

Declaration
Action<float> OnUploadProgressChanged { get; set; }
Property Value
Type Description
Action<Single>

Param

HTTPリクエストのパラメータ

Declaration
IHttpParam Param { get; set; }
Property Value
Type Description
IHttpParam

Url

URL

Declaration
IHttpUrl Url { get; }
Property Value
Type Description
IHttpUrl

Methods

BuildUrl()

クエリパラメータを含むURLを返す

Declaration
string BuildUrl()
Returns
Type Description
String

URL文字列

DeleteAsync()

DELETEリクエストを行う

Declaration
Task<IHttpResponse> DeleteAsync()
Returns
Type Description
Task<IHttpResponse>

DELETEリクエストのレスポンス

Exceptions
Type Condition
HttpRequestFailedException

HTTPリクエスト失敗

DeleteAsync(Action<IHttpResponse>, Action<HttpRequestFailedException>)

DELETEリクエストを行う

Declaration
void DeleteAsync(Action<IHttpResponse> onSuccess, Action<HttpRequestFailedException> onError)
Parameters
Type Name Description
Action<IHttpResponse> onSuccess

成功コールバック

Action<HttpRequestFailedException> onError

失敗コールバック

GetAsync()

GETリクエストを行う

Declaration
Task<IHttpResponse> GetAsync()
Returns
Type Description
Task<IHttpResponse>

GETリクエストのレスポンス

Exceptions
Type Condition
HttpRequestFailedException

HTTPリクエスト失敗

GetAsync(Action<IHttpResponse>, Action<HttpRequestFailedException>)

GETリクエストを行う

Declaration
void GetAsync(Action<IHttpResponse> onSuccess, Action<HttpRequestFailedException> onError)
Parameters
Type Name Description
Action<IHttpResponse> onSuccess

成功コールバック

Action<HttpRequestFailedException> onError

失敗コールバック

PostAsync()

Postリクエストを行う

Declaration
Task<IHttpResponse> PostAsync()
Returns
Type Description
Task<IHttpResponse>

Postリクエストのレスポンス

Exceptions
Type Condition
HttpRequestFailedException

HTTPリクエスト失敗

PostAsync(Action<IHttpResponse>, Action<HttpRequestFailedException>)

POSTリクエストを行う

Declaration
void PostAsync(Action<IHttpResponse> onSuccess, Action<HttpRequestFailedException> onError)
Parameters
Type Name Description
Action<IHttpResponse> onSuccess

成功コールバック

Action<HttpRequestFailedException> onError

失敗コールバック

PutAsync()

PUTリクエストを行う

Declaration
Task<IHttpResponse> PutAsync()
Returns
Type Description
Task<IHttpResponse>

PUTリクエストのレスポンス

Exceptions
Type Condition
HttpRequestFailedException

HTTPリクエスト失敗

PutAsync(Action<IHttpResponse>, Action<HttpRequestFailedException>)

PUTリクエストを行う

Declaration
void PutAsync(Action<IHttpResponse> onSuccess, Action<HttpRequestFailedException> onError)
Parameters
Type Name Description
Action<IHttpResponse> onSuccess

成功コールバック

Action<HttpRequestFailedException> onError

失敗コールバック

In This Article
Back to top Generated by DocFX