Skip to content

Commit ace9551

Browse files
committed
add missing import for Linux
1 parent cf1ee11 commit ace9551

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Sources/SimpleHTTPFoundation/Foundation/URLRequest/URLRequest+URL.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import Foundation
22

3+
#if canImport(FoundationNetworking)
4+
import FoundationNetworking
5+
#endif
6+
37
extension URLRequest {
48
/// Return a new URLRequest whose path is relative to `baseURL`
59
public func relativeTo(_ baseURL: URL) -> URLRequest {

Sources/SimpleHTTPFoundation/Foundation/URLSession+Async.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import Foundation
22

3+
#if canImport(FoundationNetworking)
4+
import FoundationNetworking
5+
#endif
6+
37
extension URLSession {
48
@available(iOS, deprecated: 15.0, message: "Use built-in API instead")
59
public func data(for urlRequest: URLRequest) async throws -> (Data, URLResponse) {

0 commit comments

Comments
 (0)