Skip to content

Commit

Permalink
Add withTLS(configuration:)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Feb 10, 2025
1 parent a3bce93 commit 1e8f9e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/HummingbirdTLS/TLSChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ extension ServerChildChannel {
func withTLS(tlsConfiguration: TLSConfiguration) throws -> any ServerChildChannel {
try TLSChannel(self, tlsConfiguration: tlsConfiguration)
}

/// Construct existential ``TLSChannel`` from existential `ServerChildChannel`
func withTLS(configuration: TLSChannelConfiguration) throws -> any ServerChildChannel {
try TLSChannel(self, configuration: configuration)
}

Check warning on line 92 in Sources/HummingbirdTLS/TLSChannel.swift

View check run for this annotation

Codecov / codecov/patch

Sources/HummingbirdTLS/TLSChannel.swift#L90-L92

Added lines #L90 - L92 were not covered by tests
}

/// TLSChannel configuration
Expand Down

0 comments on commit 1e8f9e2

Please sign in to comment.