feat(header_dict): initial implementation

Minimal changes to adapt the existing code into the new header_dict
type, which handles all header-related operations, and appears as
a public member for both request and response type.