Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

ServerConfiguration.HTTP2

HTTP/2 specific configuration.
struct HTTP2

Overview

HTTP/2 is only negotiated over TLS (via ALPN). If an http2(config:) version is added to httpVersions without also setting a tlsConfiguration, the server throws an error when it starts (rather than serving over plaintext), so callers can catch it and decide how to handle it.

Topics

Structures

Initializers

Instance Properties

Type Properties

Relationships

Conforms To

  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype