Skip to content

Conversation

MarcoPolo
Copy link
Contributor

This defines a multiaddr URI scheme. This would enable HTTP redirects to other hosts and resources. In Go, this would enable a single http.RoundTripper to work on any transport. In JS, we would be able to create a new Request with this URI and use it with a custom fetch to make HTTP requests to any transport.

Example:

multiaddr:/ip4/1.2.3.4/udp/54321/quic-v1/p2p/12D.../httppath/.well-known%2Flibp2p

If we approve this, we should likely register this scheme with IANA. PL has registered other schemes in the past, so I think it is doable (ipfs and ipns).

Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MarcoPolo MarcoPolo merged commit 8f44d00 into http Jun 5, 2024
@MarcoPolo MarcoPolo deleted the marco/multiaddr-scheme branch June 5, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants