Sisk

Method

HttpServer.CreateListener

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

CreateListener() #

Gets an listening and running HTTP server in an random port.

C#
public static HttpServer CreateListener()

Returns #

HttpServer

CreateListener(ushort) #

Gets an listening and running HTTP server in the specified port.

C#
public static HttpServer CreateListener(ushort port)

Parameters #

port ushort

The listening port of the HTTP server.

Returns #

HttpServer

CreateListener(ushort, out HttpServerConfiguration, out ListeningHost, out Router) #

Gets an listening and running HTTP server in the specified port.

C#
public static HttpServer CreateListener(ushort insecureHttpPort, out HttpServerConfiguration configuration, out ListeningHost host, out Router router)

Parameters #

insecureHttpPort ushort

The insecure port where the HTTP server will listen.

configuration HttpServerConfiguration

The HttpServerConfiguration object issued from this method.

host ListeningHost

The ListeningHost object issued from this method.

router Router

The Router object issued from this method.

Returns #

HttpServer

Type to search the documentation and the API reference.