Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: HttpServerOptions AddEndpoint(string, string, int, bool)

Declaration

public HttpServerOptions AddEndpoint(
    string key,
    string bindAddress,
    int port,
    bool secure = false
)

Summary

Adds an endpoint for the server to listen on.

Parameters

stringkey Unique key used to identify this endpoint.
stringbindAddress The hostname/address to listen on, or null to listen on all interfaces.
intport The port to listen on.
boolsecure Specifies whether this is a secure (HTTPS) endpoint.