browser/lib/shim/request.js
function mapResponse(response) {
  response.body = response.text;
  response.statusCode = response.status;
  return response;
}
function mapResponse(response) {
  response.body = response.text;
  response.statusCode = response.status;
  return response;
}
function mapResponse ( response ) { response . body = response . text ; response . statusCode = response . status ; return response ; }
map XHR response object properties to Node.js request lib's response object properties
map XHR response object properties to Node . js request lib s response object properties