-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fetch over libp2p #2204
Comments
@p-shahi I think this belongs in js-libp2p, and i'm not sure we need this because fetching is working. I need more context from @aschmahmann and @MarcoPolo to understand exactly what we need from Marco here |
I think we have a terminology precision issue, so let's see if we can clear it up. IIUC the desire here is for https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API to work over libp2p connections in browsers so as to enable things like doing HTTP requests to servers that do not have certificates signed by root CAs. This is related to the HTTP-over-libp2p work linked above which, while not strictly necessary to support service workers retrieving data over libp2p (e.g. I can use a protocol like Bitswap over WebTransport or WSS), is nice to have as it enables libp2p consumers to use the same APIs to talk to both more standard HTTP servers and ones that are only accessible if you have other libp2p capabilities available (e.g. connecting over WebTransport where root CA certs are not required, tunneling over libp2p relays, webrtc connections established via holepunching, ...). IIUC there are a few broad issues for this to work but this one (Fetch over libp2p) probably lives in js-libp2p.
|
Agreed.
WIP here: #2218
Is what I’ll try to start next week. I already did some exploratory work on service workers to learn about them a bit.
Cool, thanks for the link, I think that’s helpful for at least part of this. Closing this, since it doesn’t make sense to be in go-libp2p. New js-libp2p issue here: libp2p/js-libp2p#1648 |
issue moved to libp2p/js-libp2p#1648 |
Supporting work for ipfs/in-web-browsers#207 see comment: ipfs/in-web-browsers#207 (comment)
The text was updated successfully, but these errors were encountered: