Behaviours: cowboy_sub_protocol.
Experimental REST protocol implementation.
Based on the Webmachine Diagram from Alan Dean and Justin Sheehy, which can be found in the Webmachine source tree, and on the Webmachine documentation available at http://wiki.basho.com/Webmachine.html at the time of writing.upgrade/4 | Upgrade a HTTP request to the REST protocol. |
upgrade(Req, Env, Handler::module(), HandlerOpts::any()) -> {ok, Req, Env} | {error, 500, Req}
Upgrade a HTTP request to the REST protocol.
You do not need to call this function manually. To upgrade to the REST protocol, you simply need to return {upgrade, protocol, cowboy_rest} in your cowboy_http_handler:init/3 handler function.Generated by EDoc, Aug 16 2014, 11:28:19.