code: function headersToString(headers){
    var lines = [];
    for(var name in headers){
      lines.push(name + ': ' + headers[name]);
    }
    return lines.join('\n');
  }
docs: Convert a headers map into a multi-line string
  
  @param {Object} headers
  @return {String}