You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bzz:// urls work well in a future scenario where everyone uses swarm-enabled browsers to access content. However, this is not the case now, so we need a strategy on how would we like to handle urls, so that they work well in most situations, e.g. in normal browsers, with different gateways, etc.
Let's define some terminology to describe the different user scenarios:
Client software environment
The user's software environment to access a swarm page
public-gateway: normal browser using public http gateway
local-gateway: normal browser and local swarm node http interface
browser-plugin: normal browser with plugin to rewrite urls
How to implement special (hash/list/immutable/raw) request types in swarm
We need a few special type of requests for testing/debugging purposes on swarm:
raw: returns the raw content at the given hash
hash: returns the hash and not the content
list: returns the list of all the files in the manifest under the given path
immutable: skip ENS resolving, only accept hashes
We have different kind of possible solutions on how to differentiate the requests to implement these special request types. These potential solutions all have their pros and cons.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters