getServer method Null safety

HttpServer? getServer()

Gets an HTTP server instance. Returns an HTTP server instance of null if endpoint is closed.