Add an possibiliy to choose returned content-type runtime

Issue #137 new
Former user 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