# Cowmachine decision flow and callbacks

Source: https://zotonic.com/page/2238/cowmachine-decision-flow-and-callbacks

URI: https://zotonic.com/id/2238

Language: en

Overview of controller callbacks and decisions.

HTTP requests are handled by [controllers](/page/321/controllers "Controllers"). Controllers are implemented using callbacks from a HTTP state machine which handles the HTTP request. The state machine is called <a rel="noopener noreferrer" href="https://github.com/zotonic/cowmachine" target="_blank">Cowmachine</a>.

Cowmachine is an adaptation from <a rel="noopener noreferrer" href="https://github.com/webmachine/webmachine" target="_blank">Webmachine</a>. It is simpler, faster and uses the HTTP library <a rel="noopener noreferrer" href="https://github.com/ninenines/cowboy" target="_blank">Cowboy</a> instead of Mochiweb.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2238?language=en

Media download: https://zotonic.com/media/attachment/id/2238?language=en

## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2238?language=en>)
