   secure: Boolean
   maxHeaders: Number
   timeout: Number
+  onError: Function
 
 type.defineValues (options) ->
 


# TODO: Support custom "500 Internal Error" page.

assertTypes = require "assertTypes"
assertType = require "assertType"

      app.emit "response", res
      measure req, res

  .fail (error) ->
    onError error, res
    app.emit "response", res
    measure req, res

