fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) InitError(@TypeOf(stream))!Client

Initiates a TLS handshake and establishes a TLSv1.3 session with stream, which must conform to StreamInterface.

host is only borrowed during this function call.

Parameters

stream: anytype,
ca_bundle: Certificate.Bundle,
host: []const u8,