Expand description
Handling of multiple Host
s 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
- A collection of
Host
s, with an optional default and arbitrarily many others, indexed by [Host.name
]. - A builder of
Collection
. SeeCollection::builder()
. - A set of settings for a virtual host, allowing multiple DNS entries (domain names) to share a single IP address.
Enums
- Per host filter output of whether or not to cache a response with some
StatusCode
. - CertificateError
https
An error regarding creation of a [rustls::sign::CertifiedKey
].
Functions
- All the supported ALPN protocols.
- This is the default for
Options::status_code_cache_filter
. - get_certified_key
https
Extracts a [sign::CertifiedKey
] fromcert_path
andprivate_key_path
.
Type Definitions
- CertKeyPair
https
A pair of [rustls::Certificate
] and [sign::SigningKey
].