ProxyServer constructor

ProxyServer({
  1. Scheme? scheme,
  2. required String host,
  3. int? port,
})

Implementation

ProxyServer({
  /// The scheme (protocol) of the proxy server itself. Defaults to 'http'.
  Scheme? scheme,

  /// The hostname or IP address of the proxy server. Hostnames must be in
  /// ASCII (in Punycode format). IDNA is not supported, yet.
  required String host,

  /// The port of the proxy server. Defaults to a port that depends on the
  /// scheme.
  int? port,
}) : _wrapped = $js.ProxyServer(
        scheme: scheme?.toJS,
        host: host,
        port: port,
      );