[Enhancement] Communications library for non Apple platforms (part II) #16

Merged
javier merged 2 commits from bugfix/communications-non-apple-support into main 2023-04-30 13:28:33 +00:00
Showing only changes of commit 567d48aefa - Show all commits

View File

@ -10,9 +10,12 @@
//
//===----------------------------------------------------------------------===//
#if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
/// This class overrides the `URLProtocol` protocol used by the `URLSession` to handle the loading of protocol-specific URL data so it is possible to mock URL response for testing purposes.
public class MockURLProtocol: URLProtocol {
@ -117,4 +120,3 @@ public struct MockURLResponse {
}
}
#endif