Conversation
Frame.ReadCsv(path, ...) now accepts HTTP/HTTPS URLs in addition to local file paths. The URL is detected by the 'http://' or 'https://' prefix and downloaded synchronously via a shared HttpClient instance. Both the C# (Frame.ReadCsv) and F# (Frame.ReadCsv / Frame.ReadCsv<'R>) path-based overloads benefit from the change. Stream- and TextReader- based overloads are unaffected. The documentation for the `path` parameter already said 'a file name or a web location of the resource' — this commit makes that promise real. Co-authored-by: Copilot <[email protected]>
9 tasks
dsyme
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Repo Assist — implementing the URL-support feature requested in #38.
Problem
The documentation for
Frame.ReadCsvdescribed thelocationparameter as accepting "a file name or web location (URL)", but the implementation only handled local file paths — URLs silently caused an I/O exception. This discrepancy has been open since the issue was filed in 2014.Solution
Detect whether the location string is an HTTP/HTTPS URL and, if so, fetch its content via
HttpClient, then pass aStringReaderto the CSV parser — leaving the local file path unchanged for all other inputs.Implementation
Added a private
HttpReadermodule inFrameExtensions.fs:All 669 tests pass on Ubuntu. No new network-dependent tests added (these would be fragile in CI without a local server).