Behaviours: cowboy_sub_protocol.
REST protocol implementation.
Originally based on the Webmachine Diagram from Alan Dean and Justin Sheehy.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, Oct 28 2013, 11:09:20.