Method RegisterHandler
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
HttpServerHandlerThe instance of the server handler.