code: function parseHeaders(headerString) {
  	var headers = {};
  	var headersArray = headerString.split(/[\r\n]+/);
  	headersArray.forEach(function (headerString) {
  		var headerChunks = headerString.split(':');
  		headers[headerChunks.shift().trim()] = headerChunks.join(':').trim();
  	});
  	return headers;
  }
docs: Parse a HTTP header string