Attempts to convert the passed resource into a HTTP(s) URL or an array of multiaddrs.
resource
The returned URL should be handled by the global fetch, the multiaddr(s) should be handled by libp2p.
Optional
Attempts to convert the passed
resource
into a HTTP(s) URL or an array of multiaddrs.The returned URL should be handled by the global fetch, the multiaddr(s) should be handled by libp2p.