Implement a function resolve best proxy(url, proxies) in task module.py that, given a target URL and a proxy…
Implement a function resolve best proxy(url, proxies) in task module.py that, given a target URL and a proxy…: a task in repo2rlenv-code-instruct (Harbor dataset). The function must use requests.utils.select proxy internally and return the selected proxy URL string, or None if no proxy applies…
The task
The function must use `requests.utils.select_proxy` internally and return the selected proxy URL string, or `None` if no proxy applies. Additionally, implement `build_proxy_headers(proxy_url)` that, given a proxy URL string (or `None`), returns a `requests.structures.CaseInsensitiveDict` containing a…
Part of FineEnvs/repo2rlenv-code-instruct.