Sisk

Method

HttpServer.RegisterHandler<T>

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

RegisterHandler<T>() #

Associate an HttpServerHandler in this HttpServer to handle functions such as requests, routers and contexts.

C#
public void RegisterHandler<T>() where T : HttpServerHandler, new()

Type Parameters #

T

The handler which implements HttpServerHandler.

RegisterHandler(HttpServerHandler) #

Associate an HttpServerHandler in this HttpServer to handle functions such as requests, routers and contexts.

C#
public void RegisterHandler(HttpServerHandler obj)

Parameters #

obj HttpServerHandler

The instance of the server handler.

Type to search the documentation and the API reference.