Class UnityWebRequestDriver
IHttpConnectionDriver that carried out UnityWebRequest
Implements
Inherited Members
Namespace: Pixiv.VroidSdk.Unity.Networking.Drivers
Assembly: Pixiv.VroidSdk.Unity.dll
Syntax
public sealed class UnityWebRequestDriver : IHttpConnectionDriver
Constructors
UnityWebRequestDriver(SynchronizationContext)
Constructor
Declaration
public UnityWebRequestDriver(SynchronizationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SynchronizationContext | context | SynchronizationContext when calling callback |
Methods
Create(IHttpUrl, IHttpHeader, Int64)
Create IHttpConnection
Declaration
public IHttpConnection Create(IHttpUrl url, IHttpHeader header = null, long timeout = 30L)
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpUrl | url | Connection destination URL |
| IHttpHeader | header | Request header |
| Int64 | timeout | Timeout (seconds), default is 30 seconds |
Returns
| Type | Description |
|---|---|
| IHttpConnection | IHttpConnection that carries out specified HTTP connection |