:right-sidebar: True ServerListenOptions =================================================================== .. currentmodule:: gi.repository.Soup .. class:: ServerListenOptions :no-contents-entry: Options to pass to :obj:`~gi.repository.Server.listen`, etc. :const:`~gi.repository.Soup.ServerListenOptions.IPV4_ONLY` and :const:`~gi.repository.Soup.ServerListenOptions.IPV6_ONLY` only make sense with :obj:`~gi.repository.Server.listen_all` and :obj:`~gi.repository.Server.listen_local`, not plain :obj:`~gi.repository.Server.listen` (which simply listens on whatever kind of socket you give it). And you cannot specify both of them in a single call. Fields ------ .. rst-class:: interim-class .. class:: ServerListenOptions :no-index: .. attribute:: HTTPS Listen for https connections rather than plain http. .. attribute:: IPV4_ONLY Only listen on IPv4 interfaces. .. attribute:: IPV6_ONLY Only listen on IPv6 interfaces.