code: function parse(raw) {
  
    var parts = raw.split(/\n\s*\n/)
      , params = {}, match
      , headers = parts.shift().split("\n")
  
    params.title = headers.shift()
    params.headers = parseHeaders(headers)
    params.body = parts.shift()
  
    if ((match = requestRegex.exec(params.title))) {
      params.request = true
      params.method = match[1]
      params.path = match[2]
      return params
    }
  
    if ((match = responseRegex.exec(params.title))) {
      params.response = true
      params.code = parseInt(match[1], 10)
      params.statusText = match[2]
      return params
    }
  }
docs: /* Internal: Parse a block of text into an HTTP request or response.
  
  raw - a string of text to parse
  
  Returns an object with properties like title, headers, body
  
  Examples
  
  parse("POST /hello\nContent-type: text/plain\n\nHello World")
  // { method: "POST", path: "/hello",
  //   headers: { "content-type": "text/plain" },
  //   body: "Hello World" }