marloncarvalho / darter

Simple and Efficient framework for creating RESTful APIs in Dart.
BSD 3-Clause "New" or "Revised" License
7 stars 1 forks source link

Utility methods in Response class #18

Closed marloncarvalho closed 9 years ago

marloncarvalho commented 9 years ago

It's a good idea to have utility methods in the Response class. For example, it may include methods to set some common headers. setContentType(), setContentLength() and so on.