nmosafi edited this page Feb 12, 2012 · 5 revisions

Handlers are the objects which handle all interaction with your resources. By convention, they will have methods which start with the names of HTTP methods such as GET, POST, PUT and DELETE. A CustomerHandler, for example, might have methods with the signatures:

  public Customers GetAll()
      return CustomerRepository.All();

  public void DeleteCustomer(int id)

OpenRasta decides which of these methods to call via a set of rules governed by the fluent configuration of the site.

See Also

Next: Codecs