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

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

  # Uncaught errors end up here.
  .fail (error) ->
    log.moat 1
    log.white error.stack
    log.moat 1
    res.status 500
    res.send {error: "Something went wrong on our end. Sorry!"}
    app.emit "response", res
    measure req, res



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