vibe.d beta banner
get vibe.d

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

Function HTTPServerContext.tlsContext

Returns the TLS context associated with the listener.

TLSContext tlsContext() @property @safe;

For non-HTTPS listeners, null will be returned. Otherwise, if only a single virtual host has been added, the TLS context of that host's settings is returned. For multiple virtual hosts, an SNI context is returned, which forwards to the individual contexts based on the requested host name.


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


© 2012-2017 RejectedSoftware e.K.


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