Skip to content

Commit 519020b

Browse files
committed
Conditionally import FoundationNetworking
1 parent 14e8587 commit 519020b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/MCP/Base/Transports/HTTPClientTransport.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import Foundation
22
import Logging
33

4+
#if canImport(FoundationNetworking)
5+
import FoundationNetworking
6+
#endif
7+
48
public actor HTTPClientTransport: Actor, Transport {
59
public let endpoint: URL
610
private let session: URLSession

0 commit comments

Comments
 (0)