Open Tzal3x opened 1 month ago
We should start from representation headers.
Representation headers include:
Our use case matches nicely with the agent-driven content negotiation.
Upon a client request (browser), the portal (agent) fetches all the resources from sui + walrus as usual.
Then, the portal could return a 300 Multiple Choices
and let the browser choose the right content representation of the site as shown in the attached image:
The server in this case is the server-side portal that has already fetched the site resources.
After having a short discussion we concluded that it would be best allowing any type of header under the site::Resource. This could be implemented with a verctor of tuples (key-value header pairs) in the walrus sites smart contract.
Description
Identify any useful headers that could be added to the
site::Resource
sui object's metadata.So far only the
Content-Encoding
andContent-Type
representation headers are included to thesite::Resource
object.e.g.
We should enrich this.
TBD: There is also the option to support any header, but that would make testing harder.
Component
portal
Code of Conduct