ServeTlsOptions constructor

ServeTlsOptions({
  1. String? cert,
  2. String? key,
  3. num? port,
  4. String? hostname,
  5. AbortSignal? signal,
  6. bool? reusePort,
  7. Object onError([
    1. Object?
    ])?,
  8. void onListen(
    1. dynamic
    )?,
})

Implementation

factory ServeTlsOptions({
  _i2.String? cert,
  _i2.String? key,
  _i2.num? port,
  _i2.String? hostname,
  _i5.AbortSignal? signal,
  _i2.bool? reusePort,
  _i2.Object Function([_i2.Object?])? onError,
  void Function(_i2.dynamic)? onListen,
}) =>
    ServeTlsOptions._(
      cert: cert,
      key: key,
      port: port,
      hostname: hostname,
      signal: signal ?? _i6.undefined,
      reusePort: reusePort,
      onError: onError == null ? null : _i3.allowInterop(onError),
      onListen: onListen == null ? null : _i3.allowInterop(onListen),
    );