extend/cowboy — Issue #107: REST: Pass the charset and language chosen to the resource
Author: essen
Created: 2011-12-12 08:27:45+00:00
State: open

We need to pass the charset and language we have selected to the resource so it knows how to generate the result. We need it for pretty much all functions since we may want to act differently depending on the language. However it would be cool to keep the calls with only 2 arguments.

I suppose there's two solutions here. We can either call the resource when we have decided which charset or language is going to be used and let it handle it from there, or we can store it in the Req and access it through some sort of metadata/2 function. I suspect the first to be a better option.

@klaar @licenser @bfrog and others, thoughts?