Table of Contents

Method RegisterHandler

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.

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.

public void RegisterHandler(HttpServerHandler obj)

Parameters

obj HttpServerHandler

The instance of the server handler.