mirror of
https://github.com/apple/swift-http-types
synced 2026-11-26 04:57:48 +00:00
add #if os for bytes function
This commit is contained in:
1 parent
4b41fd0a3a
commit
123410433b
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user