-
Notifications
You must be signed in to change notification settings - Fork 2
Where are Slug
headers handled?
#34
Comments
Agreed, all metadata about the representation belongs in As per @pmcb55's suggestion, Additionally, a specific direct getter for it could be added. Instead of exposing A question is whether we want implementations of the Maybe for now a |
This is really important, and one will want to always reference the applicable specification as regards parsing rules for the header. Even though all headers will be strings at the HTTP protocol level, they each may have specific rules regarding their semantic structure. Slug headers, in particular, should be understood as percent-encoded strings, so be sure to URL-decode them first. Packing all headers into an |
Agreed. This is why the diagram also suggests small specific parsers rather than one omniscient parser, such that all these details can be tested at once. @michielbdejong I anticipate the number of such small parsers to become large. Rather than passing them all directly to
Indeed, so small note: Content negotiation happens through a separate @michielbdejong For both cases, let me know if you would like additional diagrams. |
Resolving this for now; can be reopened if new concerns arrive. |
We want to support
Slug
headers, butResourceStore#addResource
doesn't seem to have a clear way of passing that value to it? Should it go into the metadata of the representation somewhere?The text was updated successfully, but these errors were encountered: