File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Sources/OpenAPIAsyncHTTPClient Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1515import Foundation
1616import PackageDescription
1717
18+ // General Swift-settings for all targets.
19+ let swiftSettings : [ SwiftSetting ] = [
20+ // https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
21+ // Require `any` for existential types.
22+ . enableUpcomingFeature( " ExistentialAny " )
23+ ]
24+
1825let package = Package (
1926 name: " swift-openapi-async-http-client " ,
2027 platforms: [
@@ -39,13 +46,15 @@ let package = Package(
3946 . product( name: " OpenAPIRuntime " , package : " swift-openapi-runtime " ) ,
4047 . product( name: " AsyncHTTPClient " , package : " async-http-client " ) ,
4148 . product( name: " NIOFoundationCompat " , package : " swift-nio " ) ,
42- ]
49+ ] ,
50+ swiftSettings: swiftSettings
4351 ) ,
4452 . testTarget(
4553 name: " OpenAPIAsyncHTTPClientTests " ,
4654 dependencies: [
4755 " OpenAPIAsyncHTTPClient " ,
48- ]
56+ ] ,
57+ swiftSettings: swiftSettings
4958 ) ,
5059 ]
5160)
Original file line number Diff line number Diff line change @@ -115,15 +115,15 @@ public struct AsyncHTTPClientTransport: ClientTransport {
115115 public var configuration : Configuration
116116
117117 /// Underlying request sender for the transport.
118- internal let requestSender : HTTPRequestSending
118+ internal let requestSender : any HTTPRequestSending
119119
120120 /// Creates a new transport.
121121 /// - Parameters:
122122 /// - configuration: A set of configuration values used by the transport.
123123 /// - requestSender: The underlying request sender.
124124 internal init (
125125 configuration: Configuration ,
126- requestSender: HTTPRequestSending
126+ requestSender: any HTTPRequestSending
127127 ) {
128128 self . configuration = configuration
129129 self . requestSender = requestSender
You can’t perform that action at this time.
0 commit comments