Multiple representations of an object with GET

Damian Dobroczyński qoocku at gmail.com
Fri Apr 8 04:20:17 EDT 2011


Hi list!

I do not want to dig deep in the Riak source code now, so I'm sking this
question here. These are my needs:

- objects are stored as Erlang terms (say as gb_tree or proplists)
- GET with "accept" header set to "application/json" returns JSON
- GET with "accept" header set to "application/x-erlang-binary" returns
Erlang binary
- GET with "accept" header set to "application/xml" returns some XML
- GET with "accept" header set to "plain/text" returns text representation

Is it possible to create a "represention" hook without modification the
current source code of the webmachine callback modules? Is there a fork
of the code related to this issue?

-- D.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x0CAE3AEB.asc
Type: application/pgp-keys
Size: 5071 bytes
Desc: not available
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110408/d24aa88c/attachment.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110408/d24aa88c/attachment-0001.asc>


More information about the riak-users mailing list