Skip to content

[6.0] Add FoundationNetworking hook for reading contents of remote URL #826

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: Adds a hook point for FoundationNetworking to allow Data(contentsOf:) to perform a remote URL request to fetch data
Scope: Should only impact calling Data(contentsOf:) with a non-file URL, turning an error into non-regressed behavior (but is inert without the matching SCL-F change)
Original PR: #820
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

@jmschonfeld jmschonfeld requested a review from itingliu August 5, 2024 22:59
@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld jmschonfeld merged commit 057297d into swiftlang:release/6.0 Aug 8, 2024
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