mirror of
https://github.com/swift-server/swift-openapi-async-http-client.git
synced 2026-06-02 07:47:33 +00:00
Full compatibility with the "ExistentialAny" upcoming feature (#8)
Discussed and requested in https://github.com/apple/swift-openapi-generator/pull/99#issuecomment-1630636372
This commit is contained in:
@@ -115,7 +115,7 @@ public struct AsyncHTTPClientTransport: ClientTransport {
|
||||
public var configuration: Configuration
|
||||
|
||||
/// Underlying request sender for the transport.
|
||||
internal let requestSender: HTTPRequestSending
|
||||
internal let requestSender: any HTTPRequestSending
|
||||
|
||||
/// Creates a new transport.
|
||||
/// - Parameters:
|
||||
@@ -123,7 +123,7 @@ public struct AsyncHTTPClientTransport: ClientTransport {
|
||||
/// - requestSender: The underlying request sender.
|
||||
internal init(
|
||||
configuration: Configuration,
|
||||
requestSender: HTTPRequestSending
|
||||
requestSender: any HTTPRequestSending
|
||||
) {
|
||||
self.configuration = configuration
|
||||
self.requestSender = requestSender
|
||||
|
||||
Reference in New Issue
Block a user