code: function (headerString) {
          var headers = [],
              regexes = {
                  header: /^(\S+):(.*)$/gm,
                  fold: /\r\n([ \t])/g,
                  trim: /^\s*(.*\S)?\s*$/
              },
              match = regexes.header.exec(headerString);
          headerString = headerString.toString().replace(regexes.fold, '$1');
  
          while (match) {
              headers.push({
                  key: match[1],
                  value: match[2].replace(regexes.trim, '$1')
              });
              match = regexes.header.exec(headerString);
          }
          return headers;
      }
docs: Parses a multi line header string into an array of {@link Header~definition}.
  
  @param {String} headerString
  @returns {Array}