w3c-ccg / hashlink

An IETF specification for cryptographic hyperlinking
https://w3c-ccg.github.io/hashlink/
Other
15 stars 3 forks source link

URL encoding should allow optional metadata #2

Open davidlehn opened 5 years ago

davidlehn commented 5 years ago

The URL param form should include optional-metadata:

- <url>?hl=<resource-hash>
+ <url>?hl=<resource-hash>:<optional-metadata>

This is needed so that you can encoded the content-type that is required to retrieve a representation with the proper hash.

As a general comment, the optional-metadata may need to allow any headers that are required to get the proper resources representation. content-type is just one of those.