Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support IPFS/IPNS paths, Gateways, etc (#4)
* feat: support IPFS/IPNS paths, Gateways, etc Adds support for fetching resources in the form: - IPFS Path, e.g. `/ipfs/<CID>` - IPNS Path, e.g. `/ipns/<PeerId>` - IPFS Gateway Path, e.g. `http://example.com/ipfs/<CID>` - IPNS Gateway Path, e.g. `http://example.com/ipns/<PeerId>` - IPFS Subdomain Gateway Path, e.g. `http://<CID>.ipfs.example.com` - IPNS Subdomain Gateway Path, e.g. `http://<PeerId>.ipns.example.com` * chore: simplify regex and test https urls too * chore: apply suggestions from code review Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com> * chore: fix tests * chore: more tests * chore: remove $ * chore: https? test group name --------- Co-authored-by: Daniel Norman <1992255+2color@users.noreply.github.com> Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
- Loading branch information