couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Sheehy <jus...@iago.org>
Subject Re: Default response is text/plain
Date Fri, 06 Feb 2009 17:57:53 GMT
Brian's patch is a decent try, but is not correct HTTP content-negotiation.

I wrote a short note on this topic today for a different reason.
http://blog.therestfulway.com/2009/02/content-negotiation-for-humans.html

For anyone unfamiliar: webmachine RESTs atop mochiweb.

I suggest that couchdb follow basically the same pattern.  If you don't
want to use webmachine directly, feel free to import the conneg code in
http://code.google.com/p/webmachine/source/browse/trunk/src/webmachine_util.erl
(choose_media_type/2) as it is Apache-2 licensed.

-Justin

Mime
View raw message