lib/helpers.js
function (line) {
    var pieces = line.split(' ')

    // Header string pieces
    var output = {
      version: pieces.shift(),
      status: parseFloat(pieces.shift()),
      statusText: pieces.join(' ')
    }

    return output
  }
function (line) {
    var pieces = line.split(' ')

    // Header string pieces
    var output = {
      version: pieces.shift(),
      status: parseFloat(pieces.shift()),
      statusText: pieces.join(' ')
    }

    return output
  }
function ( line ) { var pieces = line . split ( ' ' ) // Header string pieces var output = { version : pieces . shift ( ) , status : parseFloat ( pieces . shift ( ) ) , statusText : pieces . join ( ' ' ) } return output }
parse status line into an object
parse status line into an object