Show / Hide Table of Contents

Class OnetimeHttpServer

HTTP server to receive request only once

Inheritance
Object
OnetimeHttpServer
Implements
INetworkListener
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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

Implements

INetworkListener
In This Article
Back to top Generated by DocFX