loopbackSecure static method

Future<HttpServer> loopbackSecure(
  1. int port,
  2. SecurityContext context,
  3. {int backlog = 0,
  4. bool v6Only = false,
  5. bool requestClientCertificate = false,
  6. bool shared = false}
)

Like loopback, but supports HTTPS requests.

See HttpServer.bindSecure.

Implementation

static Future<HttpServer> loopbackSecure(int port, SecurityContext context,
    {int backlog = 0,
    bool v6Only = false,
    bool requestClientCertificate = false,
    bool shared = false}) {
  return _loopback(
      port,
      (address, port) => HttpServer.bindSecure(address, port, context,
          backlog: backlog,
          v6Only: v6Only,
          shared: shared,
          requestClientCertificate: requestClientCertificate));
}