proto.setRequest = function(request) {
  if (!(request instanceof Request)) {
    throw new Error('request must be a Request instance');
  }