1. Jesper Nøhr
  2. django-piston
Issue #137 new

Add an possibiliy to choose returned content-type runtime

Anonymous created an issue

For example, when client sent in headers

 Accept: application/json

we answer in JSON format, when

Accept: application/xml

we serialize answer in XML, and so on.

Now it's impossible because mimetype is hardcoded when we call Emitter.register. Or I miss something?

It will be nice, if we have so ability out of the box with fallback JSON-format

Comments (0)

  1. Log in to comment