Class OnetimeHttpServer
HTTP server to receive request only once
Implements
Inherited Members
Namespace: Pixiv.VroidSdk.Networking.Transports
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class OnetimeHttpServer : INetworkListener
Remarks
Used in Loopback Interface Redirect
Constructors
OnetimeHttpServer(Router)
Constructor
Declaration
public OnetimeHttpServer(Router router)
Parameters
Type | Name | Description |
---|---|---|
Router | router | HTTP router |
Methods
Abort()
Cancel connection standby
Declaration
public void Abort()
ListenAsync(Uri)
Standby network connection with specified URL
Declaration
public async Task ListenAsync(Uri url)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | Standby |
Returns
Type | Description |
---|---|
Task | Task to standby HTTP connection |
Exceptions
Type | Condition |
---|---|
HttpListenerNotSupportedException | HttpListener is not installed |
SocketOpenFailedException | Failed to open socket |