HttpServer constructor
HttpServer(
- HttpConfig cfg
Implementation
factory HttpServer(HttpConfig cfg) {
if (cfg.port <= 0 || cfg.port >= 65535) {
throw ArgumentError('Port must be between 1 and 65534 inclusive');
}
return HttpServer._(cfg);
}