HF RL Explorer

Implement a HeaderNormalizer class in task module.py that wraps requests.structures.CaseInsensitiveDict to…

Implement a HeaderNormalizer class in task module.py that wraps requests.structures.CaseInsensitiveDict to…: a task in repo2rlenv-code-instruct (Harbor dataset). HeaderNormalizer must: 1. Accept an optional dict of initial headers on construction. 2. Raise ValueError if any header name contains…

The task

`HeaderNormalizer` must: 1. Accept an optional dict of initial headers on construction. 2. Raise `ValueError` if any header **name** contains characters outside ASCII letters, digits, and hyphens (`-`). 3. Expose a `to_case_insensitive_dict()` method that returns a `requests.structures.CaseInsensitiveDict` containing…

Part of FineEnvs/repo2rlenv-code-instruct.