Skip to content

[6.0] Implement Data reading hook for remote content #5058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jmschonfeld
Copy link
Contributor

Explanation: Implements the hook defined in swiftlang/swift-foundation#826 to allow for Data(contentsOf:) to fetch from a remote URL when FoundationNetworking is loaded
Scope: Should only impact calling Data(contentsOf:) with a non-file URL, turning an error into non-regressed behavior
Original PR: #5049
Risk: Minimal - fixes a regression where the current behavior is just to throw, and fairly limited scope
Testing: Testing done via swift-ci testing and local testing
Reviewer: @iCharlesHu @parkera

@jmschonfeld jmschonfeld requested a review from itingliu August 8, 2024 16:19
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld
Copy link
Contributor Author

swiftlang/swift-foundation#826

@swift-ci please test

@jmschonfeld
Copy link
Contributor Author

swiftlang/swift-foundation#826

@swift-ci please test windows platform

@jmschonfeld
Copy link
Contributor Author

swiftlang/swift-foundation#826

@swift-ci please test windows platform

.package(
url: "https://github.com/apple/swift-foundation",
revision: "d59046871c6b69a13595f18d334afa1553e0ba50")
branch: "release/6.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops. Good catch!

@jmschonfeld jmschonfeld merged commit 9529d54 into swiftlang:release/6.0 Aug 8, 2024
2 of 3 checks passed
@jmschonfeld jmschonfeld deleted the 6.0/data-reading-from-remote branch August 8, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants