Optional
options: AbortOptionsRegisters a new lookup callback that can map keys to values, for a given set of keys that share the same prefix
// ...
libp2p.services.fetch.registerLookupFunction('/prefix', (key) => { ... })
Registers a new lookup callback that can map keys to values, for a given set of keys that share the same prefix.
Optional
lookup: LookupFunction// ...
libp2p.services.fetch.unregisterLookupFunction('/prefix')
Sends a request to fetch the value associated with the given key from the given peer