4 ms·
> My take on that particular issue is that you accept headers, offering them as the supported way of interaction, but extensions or other content-type declaring
by garethadams 13y ago
> My take on that particular issue is that you accept headers, offering them as the supported way of interaction, but extensions or other content-type declaring suffixes as convenience
This is exactly what Rails offers by default, actually. Although you (can) declare your code using a `wants.csv { … }` format, it's mapped to both the extension and the corresponding Accepts MIME type. (with the Accepts header taking precedence over the extension, I believe)
- smizell 13y agoThis is also how Apache works with content negotiation, either with a type map or MultiView. https://httpd.apache.org/docs/current/content-negotiation.html https://httpd.apache.org/docs/current/content-negotiation.ht...