kvarn

Module host

source
Expand description

Handling of multiple Hosts on one instance of Kvarn.

A single Host contains the certificate, caches, and preferences which are needed to run a domain.

This also implements the logic needed for [rustls] to resolve which Host to use for a connection. This is done by having an optional default and other defined by their SNI (or host header in HTTP/1). If no host is matched, the request is dropped, like when a unsecure connection is sent to a secure port.

Structs§

Enums§

Functions§