[rabbitmq-discuss] Docs/Advice on extending HTTP API

Tim Watson tim at rabbitmq.com
Tue Aug 27 11:30:07 BST 2013


Hi Fred,

On 27 Aug 2013, at 01:27, Dushin Fred wrote:
> Short of that, can anyone explain the roles of the following functions?
> 
> content_types_provided/2
> resource_exists/2
> to_json/2
> is_authorized/2
> 
> augmented/2
> basic/1
> 
> Who calls them?  When are they called?  Can anything general be said about the parameters to these functions?   (Yes, I too can use io:format :)
> 
> Sorry for the somewhat vague set of questions, but I haven't gotten cozy with mochiweb (though I have done some work with YAWS), so I am just hunting for a few pointers.
> 

This is more to do with webmachine - a RESTFul web development framework that runs on top of mochiweb. You might want to take a look at http://webmachine.basho.com/ for documentation of resource handler callbacks and other useful bits an pieces.

Cheers,
Tim



More information about the rabbitmq-discuss mailing list