From 123410433bc35c1b7af2ef542b4d53da5f5cbff7 Mon Sep 17 00:00:00 2001 From: zunda <47569369+zunda-pixel@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:32:51 +0900 Subject: [PATCH] add #if os for bytes function --- Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift b/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift index a0c4b3f..c8fb1dc 100644 --- a/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift +++ b/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift @@ -114,6 +114,7 @@ extension URLSession { return (location, response) } + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) /// Returns a byte stream that conforms to AsyncSequence protocol. /// /// - Parameter request: The `HTTPRequest` for which to load data. @@ -129,6 +130,7 @@ extension URLSession { } return (data, response) } + #endif } #endif