Improved parsing of header values spanning multiple lines.
Refactored the `parse()` method; removed unused variables and simplified control flow.
Fixed incorrect PHPDoc.