Hacker News new | ask | show | jobs
by cxa 4069 days ago
Kudos to the company for supporting Loïc Hoguin's work on Cowboy.

One of my favorite features of Cowboy is its REST handling[1], which models a resource as a state machine with callbacks for various behaviors. The API is similar to Webmachine (another great Erlang project); I find it's a much clearer abstraction than mapping each HTTP verb + route to a function, which is what most "REST" frameworks do.

[1] http://ninenines.eu/docs/en/cowboy/1.0/guide/rest_handlers/