def completed?
      header_found, footer_found = false, false
      @lines.each do |line|
        line_def = file_format.line_definitions[line[:line_type]]
        header_found = true if line_def.header
        footer_found = true if line_def.footer
      end
      header_found && footer_found
    end
def completed?
      header_found, footer_found = false, false
      @lines.each do |line|
        line_def = file_format.line_definitions[line[:line_type]]
        header_found = true if line_def.header
        footer_found = true if line_def.footer
      end
      header_found && footer_found
    end
Checks whether this request is completed. A completed request contains both a parsed header
 line and a parsed footer line. Not that calling this function in single line mode will always
 return false.