/// <summary> /// Constructs an HTTP server with the specified configuration settings and using the specified port number for /// unsecured HTTP traffic.</summary> /// <param name="port"> /// The port number to use.</param> /// <param name="options"> /// Specifies the configuration settings to use for this <see cref="HttpServer"/>, or null to set all /// configuration values to default values.</param> public HttpServer(int port, HttpServerOptions options = null) { _opt = options ?? new HttpServerOptions(); _opt.AddEndpoint("*", null, port); Stats = new Statistics(this); }
/// <summary> /// Constructs an HTTP server with the specified configuration settings.</summary> /// <param name="options"> /// Specifies the configuration settings to use for this <see cref="HttpServer"/>, or null to set all /// configuration values to default values.</param> public HttpServer(HttpServerOptions options = null) { _opt = options ?? new HttpServerOptions(); Stats = new Statistics(this); }