Module cowboy_rest

REST protocol implementation.

Behaviours: cowboy_sub_protocol.

Description

REST protocol implementation.

Originally based on the Webmachine Diagram from Alan Dean and Justin Sheehy.

Function Index

upgrade/4Upgrade a HTTP request to the REST protocol.

Function Details

upgrade/4

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.