is_https


Description:

public bool is_https ()

Checks whether this is capable of https.

In order for a server to run https, you must call [[email protected]_tls_certificate], or set the [property@Server:tls-certificate] property, to provide it with a certificate to use.

If you are using the deprecated single-listener APIs, then a return value of true indicates that the Server serves https exclusively. If you are using [[email protected]], etc, then a true return value merely indicates that the server is *able* to do https, regardless of whether it actually currently is or not. Use [[email protected]_uris] to see if it currently has any https listeners.

Parameters:

this

a Server

Returns:

true if this is configured to serve https.




2022 vala-language.org