mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00

This is obviously not proper documentation. We will properly document it when the API stabilizes.
817 B
817 B
REST handlers
Purpose
REST is a set of constraints that, when applied to HTTP, dictates how resources must behave. It is the recommended way to handle requests with Cowboy.
REST is implemented in Cowboy as a protocol upgrade. Once upgraded, the request is handled as a state machine with many optional callbacks describing the resource and modifying the machine's behavior.
As the REST handler is still subject to change, the documentation is still thin. This state of affair will be improved in the coming weeks.
Flow diagram
Not done yet. Feel free to use the one that is currently being worked on.
Callbacks
Please see the Webmachine documentation at this time.
Usage
Please see the examples at this time.