Parse headers.