Part of the effort to remove the libevent dependency altogether, see #31194
This takes the HTTPHeaders class from #32061 and puts it into common/http.h|cpp. While it would not be strictly required for that PR to go in first, it might be better to review it first or simultaneously.
Otherwise the change itself replaces the libevent-based HTTP client with a simple synchronous implementation which uses the Sock class directly.