Skip to content
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

libp2p http transport example #2312

Open
SgtPooki opened this issue Dec 13, 2023 · 0 comments
Open

libp2p http transport example #2312

SgtPooki opened this issue Dec 13, 2023 · 0 comments
Labels
exp/intermediate Prior experience is likely helpful help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature need/triage Needs initial labeling and prioritization

Comments

@SgtPooki
Copy link
Member

We should validate that we can utilize js-libp2p to fetch content from another libp2p node that supports an IPFS gateway over libp2p.

see https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#http-gateway-over-libp2p for more details.

  1. set up a kubo node and enable the http-gateway-over-libp2p experiment: ipfs config --json Experimental.GatewayOverLibp2p true
  2. load some known content into the kubo node's blockstore (because the experiment won't fetch remote content)
  3. create and register libp2p handler for /http/1.1 (I don't think one exists yet? the development of this example can be used when creating http over libp2p for js-libp2p) via components.registrar.register
  4. Ensure we can send an http request to that kubo node listening on the /http transport, and get a valid http response back.
@SgtPooki SgtPooki added the need/triage Needs initial labeling and prioritization label Dec 13, 2023
@achingbrain achingbrain added help wanted Seeking public contribution on this issue exp/intermediate Prior experience is likely helpful kind/enhancement A net-new feature or improvement to an existing feature need/triage Needs initial labeling and prioritization and removed need/triage Needs initial labeling and prioritization labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/intermediate Prior experience is likely helpful help wanted Seeking public contribution on this issue kind/enhancement A net-new feature or improvement to an existing feature need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

2 participants