vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Variable HTTPServerSettings.port

The port on which the HTTP server is listening.

class HTTPServerSettings
{
  // ...
  ushort port = cast(ushort)80u;
  // ...
}

The default value is 80. If you are running a TLS enabled server you may want to set this to 443 instead.

Using a value of 0 instructs the server to use any available port on the given bindAddresses the actual addresses and ports can then be queried with TCPListener.bindAddresses.

Authors

Sönke Ludwig, Jan Krüger, Ilya Shipunov

Copyright

© 2012-2017 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.