PortConfig class
One more port of the app with its own http2 and tls, for
AppConfig.ports.
ports: <PortConfig>[
PortConfig(8443, http2: true, tls: TlsOptions(
certificatePath: 'cert.pem',
keyPath: 'key.pem',
)),
],
Constructors
- PortConfig(int port, {bool http2 = false, TlsOptions? tls})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- http2 → bool
-
Let this port also speak HTTP/2.
AppConfig.http2is not used for this port. Default false.final - port → int
-
The port to listen on.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tls → TlsOptions?
-
Serve HTTPS on this port.
AppConfig.tlsis not used for this port. Default null: plain HTTP.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited