es6/weapp/enhancements.js
function shortcutRequest(req){
  req.get = shortcut(req, 'GET')
  req.post = shortcut(req, 'POST')
  req.put = shortcut(req, 'PUT')
  req.patch = shortcut(req, 'PATCH')
  req['delete'] = shortcut(req, 'DELETE')
  req.options = shortcut(req, 'OPTIONS')
  req.head = shortcut(req, 'HEAD')
  req.trace = shortcut(req, 'TRACE')
  req.connect = shortcut(req, 'CONNECT')
  return req
}
function shortcutRequest(req){
  req.get = shortcut(req, 'GET')
  req.post = shortcut(req, 'POST')
  req.put = shortcut(req, 'PUT')
  req.patch = shortcut(req, 'PATCH')
  req['delete'] = shortcut(req, 'DELETE')
  req.options = shortcut(req, 'OPTIONS')
  req.head = shortcut(req, 'HEAD')
  req.trace = shortcut(req, 'TRACE')
  req.connect = shortcut(req, 'CONNECT')
  return req
}
function shortcutRequest ( req ) { req . get = shortcut ( req , 'GET' ) req . post = shortcut ( req , 'POST' ) req . put = shortcut ( req , 'PUT' ) req . patch = shortcut ( req , 'PATCH' ) req [ 'delete' ] = shortcut ( req , 'DELETE' ) req . options = shortcut ( req , 'OPTIONS' ) req . head = shortcut ( req , 'HEAD' ) req . trace = shortcut ( req , 'TRACE' ) req . connect = shortcut ( req , 'CONNECT' ) return req }
to decorate promisified request function
to decorate promisified request function