It would be nice if the content negotiation in Strata provided a way to get an ordered list of the media types a client accepts based on q values in the Accept header. For an example of a module that does this, see https://github.com/federomero/negotiator.
Indeed. I have a Ruby project, rack-accept, that does this. I've been thinking about porting this functionality over to strata, but nobody has needed it thus far.
It would be nice if the content negotiation in Strata provided a way to get an ordered list of the media types a client accepts based on q values in the Accept header. For an example of a module that does this, see https://github.com/federomero/negotiator.
In this Accept header value ...
I would expect to get back
Media types with no q value, such as text/html in this example, default to 1. Then they are sorted in descending order.