I want to write a message handler that will return the content translated by the built-in conneg system.
I want it to still use my request and response handlers, because they change the way I handle the conneg rules (by adding defaults, removing types, etc).
My end goal:
To have a message handler that takes requests at /authtoken that takes 2 querystring parameters username and password, and returns the login token with an expiration date.
If they are sending/requesting JSON, I want to send back JSON. If they are requesting/sending JSONP I want to return JSONP. If they are requesting/sending XML I want to return XML.
I have no idea how to handle this inside a message handler without doing all the work manually.