Class HttpClientDriver
Factory to create IHttpConnection
Implements
Inherited Members
Namespace: Pixiv.VroidSdk.Networking.Drivers
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class HttpClientDriver : IHttpConnectionDriver
Constructors
HttpClientDriver(SynchronizationContext)
Constructor
Declaration
public HttpClientDriver(SynchronizationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SynchronizationContext | context | SynchronizationContext used for 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 |