-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit allows oneio::get_http_reader function to take an optional opt_client instead of headers, allowing more flexibility on customizing HTTP reqwest instead of only allowing changing headers. It is now library users' responsibility to create custom `reqwest::blocking::Client` for any request customizations. This commit has a couple of breaking changes: 1. rename `oneio::get_remote_reader` to `oneio::get_http_reader` 2. rename `get_remote_ftp_raw` to `get_ftp_reader_raw` 3. change signatures of `oneio::download`, `oneio::download_with_retry`, `oneio::get_http_reader`'s optional HashMap parameter for headers to optional `reqwest::blocking::Client`.
- Loading branch information
Showing
4 changed files
with
78 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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