logoalt Hacker News

lisperyesterday at 8:56 PM0 repliesview on HN

> The response.getheader method in urllib has been deprecated since 2023 because the response.headers dictionary is what should be used instead.

Then response.getheader should just do that. There is no reason to expose the implementation to the user unless performance is critical.