https://github.com/abrahum/uri-reader
A simple URI reader
https://github.com/abrahum/uri-reader
Last synced: 3 months ago
JSON representation
A simple URI reader
- Host: GitHub
- URL: https://github.com/abrahum/uri-reader
- Owner: abrahum
- Created: 2022-03-20T13:11:47.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-04T05:48:34.000Z (about 2 years ago)
- Last Synced: 2025-01-23T17:33:31.960Z (5 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple URI reader
## Usage
```rust
uri_reader::uget("http://example.com/");
uri_header::uget_with_header("https://example.com/", [("User-Agent","Rust")].into());
uri_header::uget("base64://a_base64_str");
uri_header::uget("file:///path/to/file");
```## Supported schemes
- [x] `http`
- [x] `https`
- [x] `base64`
- [x] `file`
- [ ] `ftp`## Notes
The `file` scheme didn't support `\\` in path. Use `/` instead.