 
         result = r.handler.call ctx, req, res, next
 
-        res.contentType(r.contentType) if r.contentType?
+        res.type(r.type) if r.type?
         if typeof result is 'string' then res.send result
         else return result
 


    if typeof r.handler is 'string'
      app[r.verb] r.path, r.middleware, (req, res) ->
        res.contentType r.contentType if r.contentType?
        res.send r.handler
        return
    else

serveStatic = require 'serve-static'

vendor_module = (module,args...) ->
  fs.readFileSync (path.join (path.dirname require.resolve module), args...), 'utf-8'

socketio_key = '__session'

