Пример #1
0
 contentType: function(path) {
   this.header('content-type', mime.type(path))
   return this
 },
Пример #2
0
 return arguments.any(function(path){
   var type = mime.type(path)
     return accept.indexOf(type) !== -1 ||
            accept.indexOf(type.split('/')[0] + '/*') !== -1
 })