HttpServer constructor

HttpServer(
  1. HttpConfig? httpConfig
)

Create a new HttpServer from an optional HttpConfig.

Implementation

HttpServer(HttpConfig? httpConfig)
    // TODO(JKRhb): Check if the scheme should be determined differently.
    : scheme = httpConfig?.secure ?? false ? "https" : "http",
      port = _portFromConfig(httpConfig);