Method CreateListener
CreateListener()
Gets an listening and running HTTP server in an random port.
public static HttpServer CreateListener()
Returns
CreateListener(ushort)
Gets an listening and running HTTP server in the specified port.
public static HttpServer CreateListener(ushort port)
Parameters
port
ushortThe listening port of the HTTP server.
Returns
CreateListener(ushort, out HttpServerConfiguration, out ListeningHost, out Router)
Gets an listening and running HTTP server in the specified port.
public static HttpServer CreateListener(ushort insecureHttpPort, out HttpServerConfiguration configuration, out ListeningHost host, out Router router)
Parameters
insecureHttpPort
ushortThe insecure port where the HTTP server will listen.
configuration
HttpServerConfigurationThe HttpServerConfiguration object issued from this method.
host
ListeningHostThe ListeningHost object issued from this method.
router
RouterThe Router object issued from this method.